init script cleanup, use /etc/rc.d/ for enabled scripts, /etc/init.d/<pkgname> (enabl...
[openwrt/svn-archive/archive.git] / net / pptpd / files / pptpd.init
index 40e4d7e65abe3d4aeb0b1f18f208b0b7eaba316c..a74973ce2522fb6f07e32755b97e7d49841cef9a 100644 (file)
@@ -1,13 +1,14 @@
 #!/bin/sh /etc/rc.common
 # Copyright (C) 2006 OpenWrt.org
 
+START=60
 BIN=pptpd
 DEFAULT=/etc/default/$BIN
 RUN_D=/var/run
 PID_F=$RUN_D/$BIN.pid
-[ -f $DEFAULT ] && . $DEFAULT
 
 start() {
+       [ -f $DEFAULT ] && . $DEFAULT
        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