2 # Copyright (C) 2006 OpenWrt.org
4 .
$IPKG_INSTROOT/etc
/functions.sh
35 name
="$(basename "${initscript}")"
36 rm -f "$IPKG_INSTROOT"/etc
/rc.d
/S??
$name
40 name
="$(basename "${initscript}")"
42 ln -s "/etc/init.d/$name" "$IPKG_INSTROOT/etc/rc.d/S${START}${name##S[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.046986 seconds and 5 git commands to generate.