summaryrefslogtreecommitdiff
path: root/pm/sleep.d
diff options
context:
space:
mode:
authorMichael Biebl <mbiebl@gmail.com>2008-02-14 16:23:46 +0100
committerVictor Lowther <victor.lowther@gmail.com>2008-02-16 10:20:56 -0600
commit13a8102dffe3b54d44cbf5d8989cf68cd5971591 (patch)
treedc89d120d22fdca4bbab7d340084b09cb7c242a1 /pm/sleep.d
parent2b99001c87461df573cf6ae3091f88e193ede23a (diff)
Consistently use tabs for indentation.
Diffstat (limited to 'pm/sleep.d')
-rw-r--r--pm/sleep.d/01grub34
-rwxr-xr-xpm/sleep.d/10NetworkManager20
2 files changed, 27 insertions, 27 deletions
diff --git a/pm/sleep.d/01grub b/pm/sleep.d/01grub
index ddc39ce..7c528ab 100644
--- a/pm/sleep.d/01grub
+++ b/pm/sleep.d/01grub
@@ -2,23 +2,23 @@
default_resume_kernel()
{
- case $(uname -m) in
- i?86|x86_64|athlon)
- ;;
- *) # this is only valid for x86 and x86_64
- return 1
- ;;
- esac
-
- [ -x /sbin/grubby -a -x /sbin/grub ] || return 1
- [ -e "/boot/vmlinuz-$(uname -r)" ] || return 1
-
- out=$(/sbin/grubby --info /boot/vmlinuz-$(uname -r) |grep index)
- [ -n "${out}" ] || return 1
- current=${out#index=}
- echo "savedefault --default=${current} --once" | /sbin/grub --batch --no-floppy --device-map=/boot/grub/device.map --no-curses >/dev/null
-
- return 0
+ case $(uname -m) in
+ i?86|x86_64|athlon)
+ ;;
+ *) # this is only valid for x86 and x86_64
+ return 1
+ ;;
+ esac
+
+ [ -x /sbin/grubby -a -x /sbin/grub ] || return 1
+ [ -e "/boot/vmlinuz-$(uname -r)" ] || return 1
+
+ out=$(/sbin/grubby --info /boot/vmlinuz-$(uname -r) |grep index)
+ [ -n "${out}" ] || return 1
+ current=${out#index=}
+ echo "savedefault --default=${current} --once" | /sbin/grub --batch --no-floppy --device-map=/boot/grub/device.map --no-curses >/dev/null
+
+ return 0
}
RETVAL=0
diff --git a/pm/sleep.d/10NetworkManager b/pm/sleep.d/10NetworkManager
index 1116609..9815a39 100755
--- a/pm/sleep.d/10NetworkManager
+++ b/pm/sleep.d/10NetworkManager
@@ -6,20 +6,20 @@ command_exists dbus-send || exit 1
suspend_nm()
{
- # Tell NetworkManager to shut down networking
- dbus-send --system \
- --dest=org.freedesktop.NetworkManager \
- /org/freedesktop/NetworkManager \
- org.freedesktop.NetworkManager.sleep
+ # Tell NetworkManager to shut down networking
+ dbus-send --system \
+ --dest=org.freedesktop.NetworkManager \
+ /org/freedesktop/NetworkManager \
+ org.freedesktop.NetworkManager.sleep
}
resume_nm()
{
- # Wake up NetworkManager and make it do a new connection
- dbus-send --system \
- --dest=org.freedesktop.NetworkManager \
- /org/freedesktop/NetworkManager \
- org.freedesktop.NetworkManager.wake
+ # Wake up NetworkManager and make it do a new connection
+ dbus-send --system \
+ --dest=org.freedesktop.NetworkManager \
+ /org/freedesktop/NetworkManager \
+ org.freedesktop.NetworkManager.wake
}
case "$1" in