summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-03-10 12:24:31 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-03-10 12:24:31 -0800
commit2054ccd4e69fef0ffb6989310b5789bfbcd8b29c (patch)
tree8f8242ca36b99df7fa5233d64a89d1378224f2f6
parentc8c882e902014a770552903c3c47d6650fc07f1c (diff)
downloadvyatta-bash-2054ccd4e69fef0ffb6989310b5789bfbcd8b29c.tar.gz
vyatta-bash-2054ccd4e69fef0ffb6989310b5789bfbcd8b29c.zip
Add installation/removal scripts for vbash
Need to update /etc/shells so commands (like newrole), think vbash is a valid shell.
-rw-r--r--debian/vyatta-bash.postinst9
-rw-r--r--debian/vyatta-bash.postrm9
2 files changed, 18 insertions, 0 deletions
diff --git a/debian/vyatta-bash.postinst b/debian/vyatta-bash.postinst
new file mode 100644
index 0000000..edf824e
--- /dev/null
+++ b/debian/vyatta-bash.postinst
@@ -0,0 +1,9 @@
+#! /bin/sh -e
+
+if [ -x /usr/sbin/add-shell ]; then
+ /usr/sbin/add-shell /bin/vbash
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/vyatta-bash.postrm b/debian/vyatta-bash.postrm
new file mode 100644
index 0000000..3d77a51
--- /dev/null
+++ b/debian/vyatta-bash.postrm
@@ -0,0 +1,9 @@
+#! /bin/sh -e
+
+if [ -x /usr/sbin/remove-shell ]; then
+ /usr/sbin/remove-shell /bin/vbash
+fi
+
+#DEBHELPER#
+
+exit 0