mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
iucode-tool: rewrite init script
- Indent with tabs. - Use a function for start. - Pass "-q" to iucode_tool to inhibit usual output that would otherwise interfere with the operation status report. Signed-off-by: Carlos Santos <casantos@datacom.com.br> [Peter: drop dummy function with sed invocation not compatible with busybox] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
d6b61d1094
commit
9e323088cb
@ -5,19 +5,24 @@
|
|||||||
|
|
||||||
MICROCODE_DIR="/lib/firmware/intel-ucode"
|
MICROCODE_DIR="/lib/firmware/intel-ucode"
|
||||||
|
|
||||||
case "$1" in
|
start() {
|
||||||
start)
|
printf 'Starting iucode-tool: '
|
||||||
echo "Starting iucode-tool:"
|
/usr/sbin/iucode_tool -q -k "$MICROCODE_DIR"
|
||||||
/usr/sbin/iucode_tool -k "$MICROCODE_DIR"
|
status="$?"
|
||||||
echo "done"
|
if [ "$status" = 0 ]; then
|
||||||
;;
|
echo "OK"
|
||||||
stop)
|
else
|
||||||
;;
|
echo "FAIL"
|
||||||
restart|reload)
|
fi
|
||||||
;;
|
return "$status"
|
||||||
*)
|
}
|
||||||
echo "Usage: $0 {start|stop|restart}"
|
|
||||||
exit 1
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit $?
|
case "$1" in
|
||||||
|
start)
|
||||||
|
start;;
|
||||||
|
stop|restart|reload)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 {start|stop|restart|reload}"
|
||||||
|
exit 1
|
||||||
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user