summaryrefslogtreecommitdiffstats
path: root/abs/core/poweroff-scripts/poweroff-scripts.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/poweroff-scripts/poweroff-scripts.install')
-rw-r--r--abs/core/poweroff-scripts/poweroff-scripts.install28
1 files changed, 28 insertions, 0 deletions
diff --git a/abs/core/poweroff-scripts/poweroff-scripts.install b/abs/core/poweroff-scripts/poweroff-scripts.install
new file mode 100644
index 0000000..b066f1d
--- /dev/null
+++ b/abs/core/poweroff-scripts/poweroff-scripts.install
@@ -0,0 +1,28 @@
+# arg 1: the new package version
+
+pre_install () {
+ echo ""
+}
+
+
+pre_upgrade () {
+ echo ""
+}
+
+post_install () {
+
+ [ -e /sbin/halt.init ] || ln -sf /sbin/halt.init /sbin/reboot.init
+ [ -e /sbin/halt.init ] || ln -sf /sbin/halt.init /sbin/poweroff.init
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+
+post_upgrade(){
+ post_install
+}
+
+op=$1
+shift
+
+$op $*