aboutsummaryrefslogtreecommitdiff
path: root/system/oksh/doinst.sh
diff options
context:
space:
mode:
authorHunter Sezen <orbea@riseup.net>2019-12-31 17:13:15 -0600
committerRobby Workman <rworkman@slackbuilds.org>2019-12-31 17:13:15 -0600
commitc6602e212cc445eb8a50617eed2249a6c25767b4 (patch)
tree7545ef2ddf439c7784f5cefe8495bf9e2a079292 /system/oksh/doinst.sh
parent28396d6d4e57a0d318a799b1c5fc9ec35d570fdf (diff)
system/oksh: Added (Portable OpenBSD ksh)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/oksh/doinst.sh')
-rw-r--r--system/oksh/doinst.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/system/oksh/doinst.sh b/system/oksh/doinst.sh
new file mode 100644
index 0000000000..de374ed98d
--- /dev/null
+++ b/system/oksh/doinst.sh
@@ -0,0 +1,8 @@
+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