summaryrefslogtreecommitdiff
path: root/core/dash/dash.install
diff options
context:
space:
mode:
Diffstat (limited to 'core/dash/dash.install')
-rw-r--r--core/dash/dash.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/dash/dash.install b/core/dash/dash.install
new file mode 100644
index 000000000..6b04cba30
--- /dev/null
+++ b/core/dash/dash.install
@@ -0,0 +1,11 @@
+post_install() {
+ grep -q '/bin/dash' etc/shells || echo '/bin/dash' >> etc/shells
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ sed -i '/^\/bin\/dash/d' etc/shells
+}