Line 1... |
Line 1... |
1 |
#!/bin/sh
|
1 |
#!/bin/sh
|
2 |
# $Id: alcasar.sh 337 2010-11-22 23:06:38Z richard $
|
2 |
# $Id: alcasar.sh 339 2010-11-23 23:06:33Z richard $
|
3 |
|
3 |
|
4 |
# alcasar.sh
|
4 |
# alcasar.sh
|
5 |
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
|
5 |
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
|
6 |
# This script is distributed under the Gnu General Public License (GPL)
|
6 |
# This script is distributed under the Gnu General Public License (GPL)
|
7 |
|
7 |
|
Line 804... |
Line 804... |
804 |
$SED "/^.*functions/i. /etc/init.d/functions" /etc/init.d/chilli
|
804 |
$SED "/^.*functions/i. /etc/init.d/functions" /etc/init.d/chilli
|
805 |
$SED "/^[\t ]*stop)/i\ status)\n status chilli\n RETVAL=$?\n ;;\n" /etc/init.d/chilli
|
805 |
$SED "/^[\t ]*stop)/i\ status)\n status chilli\n RETVAL=$?\n ;;\n" /etc/init.d/chilli
|
806 |
# insertion d'une tempo sur le 'restart' pour permettre à tun0 d'être libérée
|
806 |
# insertion d'une tempo sur le 'restart' pour permettre à tun0 d'être libérée
|
807 |
$SED "/^[\t ]*\$0 start/i\ sleep 2" /etc/init.d/chilli
|
807 |
$SED "/^[\t ]*\$0 start/i\ sleep 2" /etc/init.d/chilli
|
808 |
# suppression de warning disgracieux
|
808 |
# suppression de warning disgracieux
|
809 |
$SED "s?which start-stop-daemon?which start-stop-daemon 2>dev/null?g" /etc/init.d/chilli
|
809 |
$SED "s?which start-stop-daemon?which start-stop-daemon 2>/dev/null?g" /etc/init.d/chilli
|
810 |
# création du fichier de conf
|
810 |
# création du fichier de conf
|
811 |
cp /etc/chilli/defaults /etc/chilli/config
|
811 |
cp /etc/chilli/defaults /etc/chilli/config
|
812 |
$SED "s?^# HS_WANIF=.*?HF_WANIF=$EXTIF?g" /etc/chilli/config
|
812 |
$SED "s?^# HS_WANIF=.*?HF_WANIF=$EXTIF?g" /etc/chilli/config
|
813 |
$SED "s?^HS_LANIF=.*?HS_LANIF=$INTIF?g" /etc/chilli/config
|
813 |
$SED "s?^HS_LANIF=.*?HS_LANIF=$INTIF?g" /etc/chilli/config
|
814 |
$SED "s?^HS_NETWORK=.*?HS_NETWORK=$PRIVATE_NETWORK?g" /etc/chilli/config
|
814 |
$SED "s?^HS_NETWORK=.*?HS_NETWORK=$PRIVATE_NETWORK?g" /etc/chilli/config
|