stunnel for kamikaze, contributed by coova, cleaned up by me. note: this requires...
[openwrt/svn-archive/archive.git] / net / stunnel / files / stunnel.init
1 #!/bin/sh
2
3 case "$1" in
4 start|boot)
5 # reasons for starting
6 [ -e "/etc/stunnel/stunnel.pem" ] && {
7 chmod og-rwx /etc/stunnel/stunnel.pem
8 stunnel
9 }
10 ;;
11 stop)
12 killall stunnel
13 killall -9 stunnel
14 ;;
15 esac