hc
2024-07-02 39af2116d7581c9a12be9e73bb6bdc31496495ef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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