File: setup.stop.out.v2

package info (click to toggle)
openswan 1%3A2.4.6%2Bdfsg.2-1.1
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 24,996 kB
  • ctags: 16,877
  • sloc: ansic: 121,112; sh: 19,524; xml: 9,699; asm: 4,422; perl: 4,087; makefile: 3,367; tcl: 713; exp: 657; yacc: 396; pascal: 328; lex: 289; sed: 265; awk: 124; lisp: 3
file content (9 lines) | stat: -rwxr-xr-x 1,365 bytes parent folder | download | duplicates (27)
1
2
3
4
5
6
7
8
9
ipsec_setup: 	 PATH=/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
ipsec_setup: 	 echo "Stopping FreeS/WAN IPsec..."
ipsec_setup: 	 if test -r /var/run/pluto/ipsec_setup.pid ; then status=0 ; . /var/run/pluto/ipsec.info ; else echo "stop ordered, but IPsec does not appear to be running!" ; echo "doing cleanup anyway..." ; status=1 ; fi
ipsec_setup: 	 test -f /var/run/pluto/pluto.pid && { if ps -p ` cat /var/run/pluto/pluto.pid ` > /dev/null ; then ipsec whack --shutdown | grep -v ^002 ; sleep 1 ; if test -s /var/run/pluto/pluto.pid ; then echo "Attempt to shut Pluto down failed!  Trying kill:" ; kill ` cat /var/run/pluto/pluto.pid ` ; sleep 5 ; fi ; else echo "Removing orphaned /var/run/pluto/pluto.pid:" ; fi ; rm -f /var/run/pluto/pluto.pid ; }
ipsec_setup: 	 ifl=` ifconfig | sed -n -e "/^ipsec/s/ .*//p" ` ; test "X$ifl" != "X" && for i in $ifl ; do ifconfig $i down ; ipsec tncfg --detach --virtual $i ; done ; test -r /proc/net/ipsec_klipsdebug && ipsec klipsdebug --none ; ipsec eroute --clear ; ipsec spi --clear ; lsmod 2>&1 | grep "^ipsec" > /dev/null && rmmod ipsec
ipsec_setup: 	 test -d /var/lock/subsys && rm -f /var/lock/subsys/ipsec
ipsec_setup: 	 rm -f /var/run/pluto/ipsec.info /var/run/pluto/ipsec_setup.pid
ipsec_setup: 	 echo ...FreeS/WAN IPsec stopped | logger -p daemon.error -t ipsec_setup
ipsec_setup: 	 exit $status