2 # Copyright (C) 2006 OpenWrt.org
4 .
$IPKG_INSTROOT/etc
/functions.sh
33 name
="$(basename "${initscript}")"
34 rm -f "$IPKG_INSTROOT"/etc
/rc.d
/S??
$name
35 rm -f "$IPKG_INSTROOT"/etc
/rc.d
/K??
$name
39 name
="$(basename "${initscript}")"
41 [ "$START" ] && ln -s "/etc/init.d/$name" "$IPKG_INSTROOT/etc/rc.d/S${START}${name##S[0-9][0-9]}"
42 [ "$STOP" ] && ln -s "/etc/init.d/$name" "$IPKG_INSTROOT/etc/rc.d/K${STOP}${name##K[0-9][0-9]}"
46 name
="$(basename "${initscript}")"
47 [ -x "$IPKG_INSTROOT/etc/rc.d/S${START}${name##S[0-9][0-9]}" ]
56 Syntax: $initscript [command]
59 start Start the service
61 restart Restart the service
62 reload Reload configuration files (or restart if that fails)
63 enable Enable service autostart
64 disable Disable service autostart
75 for cmd
in $EXTRA_COMMANDS; do
76 cmds
="${cmds:+$cmds$N}$cmd) $cmd;;"
78 eval "case \"\$action\" in
81 reload) reload || restart;;
This page took 0.047752 seconds and 5 git commands to generate.