summaryrefslogtreecommitdiffstats
path: root/sys-apps/mkinitrd/files/mkinitrd-swsusp2.patch
blob: b28be2b78d1d1aab8b5fef29e0ab5f7fa1739a2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff -dPNur mkinitrd-4.2.17/mkinitrd mkinitrd-4.2.17-new/mkinitrd
--- mkinitrd-4.2.17/mkinitrd	2006-05-20 05:49:28.000000000 +0500
+++ mkinitrd-4.2.17-new/mkinitrd	2006-05-20 05:52:39.000000000 +0500
@@ -975,6 +975,9 @@
 
 echo "echo Mounting /proc filesystem" >> $RCFILE
 echo "mount -t proc /proc /proc" >> $RCFILE
+echo "mount -n -o remount,ro /" >>$RCFILE
+echo "echo > /proc/suspend2/do_resume" >>$RCFILE
+echo "mount -n -o remount,rw /" >>$RCFILE
 if [ -n "$kernel25" ];then
     echo "echo Mounting sysfs" >> $RCFILE
     echo "mount -t sysfs none /sys" >> $RCFILE