• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3# Source function library.
4. /etc/init.d/functions
5
6
7RETVAL=0
8
9start() {
10
11    touch /root/jobdone
12    mount -t debugfs null /sys/kernel/debug
13    echo 1 > /sys/kernel/debug/mce/fake_ser_p
14    echo EARLYKILL > /proc/sys/vm/memory_failure_early_kill
15    sh GUESTRUN &
16    return "$RETVAL"
17}
18
19stop() {
20    return "$RETVAL"
21}
22
23# See how we were called.
24case "$1" in
25  start)
26	start
27	;;
28  stop)
29	stop
30	;;
31  *)
32	echo $"Usage: $0 {start|stop}"
33	exit 3
34esac
35
36exit "$RETVAL"
37
38