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