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 "../init.d/$name" "$IPKG_INSTROOT/etc/rc.d/S${START}${name##S[0-9][0-9]}"
42 [ "$STOP" ] && ln -s "../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
70 [ "$#" -ge 1 ] && shift
72 [ "$#" -ge 1 ] && shift
77 for cmd
in $EXTRA_COMMANDS; do
78 cmds
="${cmds:+$cmds$N}$cmd) $cmd \"\$@\";;"
80 eval "case \"\$action\" in
81 start) start \"\$@\";;
83 reload) reload \"\$@\" || restart \"\$@\";;
84 restart) restart \"\$@\";;
86 shutdown) shutdown \"\$@\";;
87 enable) enable \"\$@\";;
88 enabled) enabled \"\$@\";;
89 disable) disable \"\$@\";;
This page took 0.058398 seconds and 5 git commands to generate.