Subversion Repositories ALCASAR

Rev

Rev 800 | Rev 806 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 800 Rev 801
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 800 2012-02-02 20:19:00Z richard $ 
2
#  $Id: alcasar.sh 801 2012-02-02 21:05:57Z 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 854... Line 854...
854
			mknod tun c 10 200)
854
			mknod tun c 10 200)
855
		}
855
		}
856
		ifconfig eth1 0.0.0.0
856
		ifconfig eth1 0.0.0.0
857
		daemon /usr/sbin/chilli -c \$CONFIG --pidfile=\$pidfile &
857
		daemon /usr/sbin/chilli -c \$CONFIG --pidfile=\$pidfile &
858
        	RETVAL=$?
858
        	RETVAL=$?
859
		sleep 1 # wait for tun0 to be up
-
 
860
	fi
859
	fi
861
	;;
860
	;;
862
 
861
 
863
    reload)
862
    reload)
864
	killall -HUP chilli
863
	killall -HUP chilli