Enabling systemd job on installation of live-config-systemd.
authorDaniel Baumann <daniel@debian.org>
Sat, 9 Feb 2013 06:20:41 +0000 (07:20 +0100)
committerDaniel Baumann <daniel@debian.org>
Sat, 9 Feb 2013 06:38:43 +0000 (07:38 +0100)
debian/live-config-systemd.postinst [new file with mode: 0644]

diff --git a/debian/live-config-systemd.postinst b/debian/live-config-systemd.postinst
new file mode 100644 (file)
index 0000000..aa7c7e3
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+       configure)
+               if [ -x /bin/systemctl ]
+               then
+                       systemctl enable live-config
+               fi
+               ;;
+
+       abort-upgrade|abort-remove|abort-deconfigure)
+
+               ;;
+
+       *)
+               echo "postinst called with unknown argument \`${1}'" >&2
+               exit 1
+               ;;
+esac
+
+#DEBHELPER#
+
+exit 0