hopefully fix duplicate ppp instances (#895)
[openwrt.git] / package / base-files / default / etc / rc.common
index a08f5e5..7180b0f 100755 (executable)
@@ -32,7 +32,7 @@ shutdown() {
 
 disable() {
        name="$(basename "${initscript}")"
-       rm -f "$IPKG_INSTROOT/etc/rc.d/S??$name"
+       rm -f "$IPKG_INSTROOT"/etc/rc.d/S??$name
 }
 
 enable() {
@@ -67,7 +67,7 @@ action="$2"
 
 cmds=
 for cmd in $EXTRA_COMMANDS; do
-       cmds="$cmd) $cmd;;"
+       cmds="${cmds:+$cmds$N}$cmd) $cmd;;"
 done
 eval "case \"\$action\" in
        start) start;;
This page took 0.026126 seconds and 4 git commands to generate.