Introduces jpeg-recovery source-code
[lcapit-junk-code.git] / pm-debug
blob6ff20d06796fb774e06cdca0a2d19635b99926e3
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
26 exit 0