diff options
author | Robert Peichaer <rpe@cvs.openbsd.org> | 2015-07-20 06:59:40 +0000 |
---|---|---|
committer | Robert Peichaer <rpe@cvs.openbsd.org> | 2015-07-20 06:59:40 +0000 |
commit | 1c3048721e2617c81d161de5e5f79e5c3773b05f (patch) | |
tree | bd5373e98abccd50d7bc2cf04874d7158121fd27 /etc/rc | |
parent | de33ef20bf447340084de3afd8d9826d0ee1556f (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/rc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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). |