mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
28
package/iucode-tool/S00iucode-tool
Normal file
28
package/iucode-tool/S00iucode-tool
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Upload microcode into the processor.
|
||||
#
|
||||
|
||||
MICROCODE_DIR="/lib/firmware/intel-ucode"
|
||||
|
||||
start() {
|
||||
printf 'Starting iucode-tool: '
|
||||
/usr/sbin/iucode_tool -q -k "$MICROCODE_DIR"
|
||||
status="$?"
|
||||
if [ "$status" = 0 ]; then
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start;;
|
||||
stop|restart|reload)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload}"
|
||||
exit 1
|
||||
esac
|
||||
Reference in New Issue
Block a user