diff -Nru hibernate-script-2.0.vanilla/init.d/hibernate-cleanup.sh hibernate-script-2.0/init.d/hibernate-cleanup.sh --- hibernate-script-2.0.vanilla/init.d/hibernate-cleanup.sh 2009-05-01 23:03:41.000000000 +0100 +++ hibernate-script-2.0/init.d/hibernate-cleanup.sh 2009-05-01 23:03:55.000000000 +0100 @@ -1,4 +1,4 @@ -#!/bin/sh +#!/sbin/runscript # This script invalidates any stale swsusp and TuxOnIce images. It # searches all swap partitions on your machine, as well as TuxOnIce's @@ -91,27 +91,30 @@ msg_status() { - echo -n "$1" + einfon "$1" } msg() { - echo "$1" + einfo "$1" } -case "$1" in -start) - msg_status "Invalidating stale software suspend images... " +opts="reload" + +depend() { + after modules + before localmount +} + +start() { + ebegin "Invalidating stale software suspend images" do_start - msg "done." - ;; -stop) + eend $? +} + +stop() { do_stop - ;; -restart|force-reload) - do_reload - ;; -*) - msg "Usage: /etc/init.d/hibernate {start|stop|restart|force-reload}" -esac +} -exit 0 +reload() { + do_reload +}