Introduce emu8086
[lcapit-junk-code.git] / pm-debug
blob5637eeec55a21f03a479db70885db0759b3cc0b2
1 #!/bin/bash
3 # This script helps doing a minimal suspend-to-RAM debug,
4 # it should be used when Linux is booted with "init=/bin/bash"
6 TIMES=$1
8 mount -n -o rw,remount /
9 mount -t proc proc /proc
10 mount -t sysfs sysfs /sys
11 mknod /dev/mem c 1 1
12 sync
14 if [ -z "$TIMES" ]; then
15 TIMES=1
18 if [ $TIMES -lt 1 ]; then
19 TIMES=1
22 for i in $(seq $TIMES); do
23 echo mem > /sys/power/state && video_post
24 done