summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2015-07-20 06:59:40 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2015-07-20 06:59:40 +0000
commit1c3048721e2617c81d161de5e5f79e5c3773b05f (patch)
treebd5373e98abccd50d7bc2cf04874d7158121fd27 /etc/rc
parentde33ef20bf447340084de3afd8d9826d0ee1556f (diff)
Disable Strict Bourne shell mode for /etc/rc and /etc/netstart to be
able to use ksh syntax within these scripts. This way init doesn't need to be changed, which starts /etc/rc using /bin/sh and people can still use "sh /etc/netstart ifname". Idea from and OK halex@ OK deraadt@ krw@ guenther@
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index dd065cc426b..5cf41da1a0e 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,9 +1,12 @@
-# $OpenBSD: rc,v 1.453 2015/07/19 04:44:36 rpe Exp $
+# $OpenBSD: rc,v 1.454 2015/07/20 06:59:39 rpe Exp $
# System startup script run by init on autoboot or after single-user.
# Output and error are redirected to console by init, and the console is the
# controlling terminal.
+# Turn off Strict Bourne shell.
+set +o sh
+
# Subroutines (have to come first).