aboutsummaryrefslogtreecommitdiff
path: root/system/ksh-openbsd/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'system/ksh-openbsd/doinst.sh')
-rw-r--r--system/ksh-openbsd/doinst.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/system/ksh-openbsd/doinst.sh b/system/ksh-openbsd/doinst.sh
index 1e26ea54a4c1c..de374ed98deb3 100644
--- a/system/ksh-openbsd/doinst.sh
+++ b/system/ksh-openbsd/doinst.sh
@@ -1,3 +1,8 @@
-if ! grep -q '/bin/pdksh' etc/shells ; then
- printf "/bin/pdksh\n" >> etc/shells ;
+if [ ! -r etc/shells ]; then
+ touch etc/shells
+ chmod 644 etc/shells
+fi
+
+if ! grep -q /bin/oksh etc/shells ; then
+ printf %s\\n /bin/oksh >> etc/shells
fi