updated on Tue Jan 10 08:08:34 UTC 2012
[aur-mirror.git] / hibernate-script / hibernate-script-2.0-arch.patch
blobd59b18b5b8cb25d1c7f95b25ca554a9f351d5696
1 diff -Nur hibernate-script-1.96.orig/common.conf hibernate-script-1.96/common.conf
2 --- hibernate-script-1.96.orig/common.conf 2007-07-16 14:32:41.000000000 +0200
3 +++ hibernate-script-1.96/common.conf 2007-08-26 17:44:47.000000000 +0200
4 @@ -14,7 +14,7 @@
5 # AlwaysForce yes
6 # AlwaysKill yes
7 # HibernateVT 15
8 -# Distribution debian (or fedora/gentoo/mandrake/redhat/slackware/suse)
9 +Distribution arch
10 # XDisplay :0
12 ##############################################################################
13 diff -Nur hibernate-script-1.96.orig/scriptlets.d/hardware_tweaks hibernate-script-1.96/scriptlets.d/hardware_tweaks
14 --- hibernate-script-1.96.orig/scriptlets.d/hardware_tweaks 2007-07-16 14:33:09.000000000 +0200
15 +++ hibernate-script-1.96/scriptlets.d/hardware_tweaks 2007-08-26 17:44:47.000000000 +0200
16 @@ -86,7 +86,7 @@
17 local action
18 action=start
19 [ "$DISTRIBUTION" = "gentoo" ] && action=restart
20 - /etc/init.d/915resolution $action || return 1
21 + /etc/rc.d/915resolution $action || return 1
22 return 0
25 diff -Nur hibernate-script-1.96.orig/scriptlets.d/network hibernate-script-1.96/scriptlets.d/network
26 --- hibernate-script-1.96.orig/scriptlets.d/network 2007-07-16 14:33:09.000000000 +0200
27 +++ hibernate-script-1.96/scriptlets.d/network 2007-08-26 17:44:47.000000000 +0200
28 @@ -90,6 +90,14 @@
29 NetworkDetectDistro() {
30 # Use either a given $DISTRIBUTION or autodetect one.
31 case "$DISTRIBUTION" in
32 + arch)
33 + network_ifup() {
34 + /etc/rc.d/network ifup $1
35 + }
36 + network_ifdown() {
37 + /etc/rc.d/network ifdown $1
38 + }
39 + ;;
40 gentoo)
41 network_ifup() {
42 [ -x "/etc/init.d/net.$1" ] && /etc/init.d/net.$1 start
43 diff -Nur hibernate-script-1.96.orig/scriptlets.d/services hibernate-script-1.96/scriptlets.d/services
44 --- hibernate-script-1.96.orig/scriptlets.d/services 2007-07-16 14:33:09.000000000 +0200
45 +++ hibernate-script-1.96/scriptlets.d/services 2007-08-26 17:44:47.000000000 +0200
46 @@ -75,7 +75,7 @@
47 debian|ubuntu|redhat|fedora)
48 INITDIR=/etc/init.d
50 - slackware)
51 + slackware|arch)
52 INITDIR=/etc/rc.d