Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 385643
Collapse All | Expand All

(-)hibernate-script-2.0.orig/init.d/hibernate-cleanup.sh (-30 / +20 lines)
Lines 1-4 Link Here
1
#!/bin/sh
1
#!/sbin/runscript
2
2
3
# This script invalidates any stale swsusp and TuxOnIce images. It
3
# This script invalidates any stale swsusp and TuxOnIce images. It
4
# searches all swap partitions on your machine, as well as TuxOnIce's
4
# searches all swap partitions on your machine, as well as TuxOnIce's
Lines 77-117 Link Here
77
	:
77
	:
78
}
78
}
79
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
msg_status() {
80
msg_status() {
94
	echo -n "$1"
81
	einfo "$1"
95
}
82
}
96
83
97
msg() {
84
msg() {
98
	echo "$1"
85
	einfo "$1"
86
}
87
88
extra_started_commands="reload"
89
90
depend() {
91
	after modules
92
	before localmount
99
}
93
}
100
94
101
case "$1" in
95
start() {
102
start)
96
	ebegin "Invalidating stale software suspend images"
103
	msg_status "Invalidating stale software suspend images... "
104
	do_start
97
	do_start
105
	msg "done."
98
	eend $?
106
	;;
99
}
107
stop)
100
101
stop() {
108
	do_stop
102
	do_stop
109
	;;
103
}
110
restart|force-reload)
111
	do_reload
112
	;;
113
*)
114
	msg "Usage: /etc/init.d/hibernate {start|stop|restart|force-reload}"
115
esac
116
104
117
exit 0
105
reload() {
106
	do_reload
107
}

Return to bug 385643