reload config changes on xvm-devconfig postinst 0.2
authorGreg Price <price@mit.edu>
Tue, 22 Jul 2008 00:39:43 +0000 (20:39 -0400)
committerGreg Price <price@mit.edu>
Tue, 22 Jul 2008 00:39:43 +0000 (20:39 -0400)
svn path=/trunk/packages/xvm-devconfig/; revision=702

debian/changelog
debian/xvm-devconfig.postinst [new file with mode: 0755]

index 99f54aa..f464dc1 100644 (file)
@@ -1,3 +1,9 @@
+xvm-devconfig (0.2) unstable; urgency=low
+
+  * Add postinst to reload config.
+
+ -- Greg Price <price@mit.edu>  Mon, 21 Jul 2008 20:38:59 -0400
+
 xvm-devconfig (0.1) unstable; urgency=low
 
   * First cut.  Has hosts and realm.
diff --git a/debian/xvm-devconfig.postinst b/debian/xvm-devconfig.postinst
new file mode 100755 (executable)
index 0000000..0ea467b
--- /dev/null
@@ -0,0 +1,41 @@
+#!/bin/sh
+# postinst script
+#
+# see: dh_installdeb(1)
+
+set -e
+set -x
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    configure)
+       /usr/sbin/invirt-reload
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0