2006-10-04 20:57:49 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
2006-07-21 12:00:20 +00:00
|
|
|
|
2006-10-15 21:03:30 +00:00
|
|
|
START=60
|
2006-07-21 12:00:20 +00:00
|
|
|
BIN=pptpd
|
|
|
|
DEFAULT=/etc/default/$BIN
|
|
|
|
RUN_D=/var/run
|
|
|
|
PID_F=$RUN_D/$BIN.pid
|
|
|
|
|
2006-10-04 20:57:49 +00:00
|
|
|
start() {
|
2006-10-15 21:03:30 +00:00
|
|
|
[ -f $DEFAULT ] && . $DEFAULT
|
2006-10-04 20:57:49 +00:00
|
|
|
mkdir -p $RUN_D
|
|
|
|
for m in arc4 sha1 slhc crc-ccitt ppp_generic ppp_async ppp_mppe_mppc; do
|
|
|
|
insmod $m >/dev/null 2>&1
|
|
|
|
done
|
|
|
|
$BIN $OPTIONS
|
|
|
|
}
|
2006-07-21 12:00:20 +00:00
|
|
|
|
2006-10-04 20:57:49 +00:00
|
|
|
stop() {
|
|
|
|
[ -f $PID_F ] && kill $(cat $PID_F)
|
|
|
|
}
|