projects
/
hvlinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a797302
)
Do not deactivate network when suspending to ram
author
Hugo Villeneuve
<hugo@hugovil.com>
Wed, 26 Nov 2014 01:45:00 +0000
(20:45 -0500)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Sun, 30 Nov 2014 21:46:13 +0000
(16:46 -0500)
stage2/misc/acpi/suspend2ram.sh
patch
|
blob
|
history
diff --git
a/stage2/misc/acpi/suspend2ram.sh
b/stage2/misc/acpi/suspend2ram.sh
index
a98df77
..
6fdbd96
100755
(executable)
--- a/
stage2/misc/acpi/suspend2ram.sh
+++ b/
stage2/misc/acpi/suspend2ram.sh
@@
-47,18
+47,8
@@
sync
# temporary file
cat /proc/bus/pci/$ID > $TMP_FILE
# temporary file
cat /proc/bus/pci/$ID > $TMP_FILE
-# Stopping network.
-
-# Check if NFS server functionality is desired
-if [ -f /etc/rc.d/init.d/named ]; then
- /etc/rc.d/init.d/named stop
-fi
-
-/etc/rc.d/init.d/network stop
-
echo "Entering suspend mode"
echo "Entering suspend mode"
-# suspend
echo -n mem > /sys/power/state
echo "Resuming"
echo -n mem > /sys/power/state
echo "Resuming"
@@
-67,11
+57,5
@@
echo "Resuming"
# on resume
cat $TMP_FILE > /proc/bus/pci/$ID
# on resume
cat $TMP_FILE > /proc/bus/pci/$ID
-/etc/rc.d/init.d/network start &
-
-if [ -f /etc/rc.d/init.d/named ]; then
- /etc/rc.d/init.d/named start
-fi
-
# remove temporary file
rm -f $TMP_FILE
# remove temporary file
rm -f $TMP_FILE