Subversion Repositories ALCASAR

Rev

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

Rev 2374 Rev 2375
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2374 2017-08-16 16:31:26Z tom.houdayer $ 
2
#  $Id: alcasar.sh 2375 2017-08-16 18:30:43Z tom.houdayer $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
7
# Ce programme est un logiciel libre ; This software is free and open source
7
# Ce programme est un logiciel libre ; This software is free and open source
Line 1195... Line 1195...
1195
			mknod tun c 10 200)
1195
			mknod tun c 10 200)
1196
		}
1196
		}
1197
		ifconfig $INTIF 0.0.0.0
1197
		ifconfig $INTIF 0.0.0.0
1198
		/usr/sbin/ethtool -K $INTIF gro off
1198
		/usr/sbin/ethtool -K $INTIF gro off
1199
		daemon /usr/sbin/chilli -c \$CONFIG --pidfile=\$pidfile &
1199
		daemon /usr/sbin/chilli -c \$CONFIG --pidfile=\$pidfile &
1200
        	RETVAL=$?
1200
        	RETVAL=\$?
1201
	fi
1201
	fi
1202
	;;
1202
	;;
1203
 
1203
 
1204
    reload)
1204
    reload)
1205
	killall -HUP chilli
1205
	killall -HUP chilli
Line 1219... Line 1219...
1219
    stop)
1219
    stop)
1220
	if [ -f \$pidfile ] ; then  
1220
	if [ -f \$pidfile ] ; then  
1221
        	gprintf "Shutting down \$prog: "
1221
        	gprintf "Shutting down \$prog: "
1222
		killproc /usr/sbin/chilli
1222
		killproc /usr/sbin/chilli
1223
		RETVAL=\$?
1223
		RETVAL=\$?
1224
		[ \$RETVAL = 0 ] && rm -f $pidfile
1224
		[ \$RETVAL = 0 ] && rm -f \$pidfile
1225
	else	
1225
	else	
1226
        	gprintf "chilli is not running"
1226
        	gprintf "chilli is not running"
1227
	fi
1227
	fi
1228
	;;
1228
	;;
1229
    
1229