summaryrefslogtreecommitdiffstats
path: root/debian/nfs-common.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/nfs-common.postinst')
-rwxr-xr-xdebian/nfs-common.postinst17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/nfs-common.postinst b/debian/nfs-common.postinst
new file mode 100755
index 0000000..9814bc5
--- /dev/null
+++ b/debian/nfs-common.postinst
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+
+case "$1" in
+ configure)
+ test ! -d /usr/share/doc/nfs-common ||
+ test -L /usr/doc/nfs-common ||
+ ln -sf ../share/doc/nfs-common /usr/doc/nfs-common
+
+ update-rc.d nfs-common defaults 19 81 >/dev/null 2>&1
+
+ /etc/init.d/nfs-common start
+ ;;
+
+ *)
+ /etc/init.d/nfs-common start
+ ;;
+esac