diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 2003-01-06 20:40:40 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 2003-01-06 20:40:40 +0000 |
commit | 94b08a9445500cce5f1d778e72fa4580ff2d2b99 (patch) | |
tree | 43fb22f26724d4f6157e76cda10543d968fd72eb /etc/rc | |
parent | c4361a6645632f71926af0ac6b0fc3b9936c70c7 (diff) |
Handle wsconsctl.conf entries that contain spaces, e.g.
keyboard.map+="keysym Caps_Lock = Control_L"
OK fgs@
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.213 2003/01/03 18:39:58 miod Exp $ +# $OpenBSD: rc,v 1.214 2003/01/06 20:40:39 marc Exp $ # System startup script run by init on autoboot # or after single-user. @@ -544,12 +544,16 @@ fi echo '.' -if [ -f /etc/wsconsctl.conf ]; then +if [ -x /sbin/wsconsctl -a -f /etc/wsconsctl.conf ]; then ( # delete comments and blank lines + saveIFS=$IFS + IFS=" +" set -- `stripcom /etc/wsconsctl.conf` + IFS=$save_IFS while [ $# -ge 1 ] ; do - wsconsctl -w $1 + eval /sbin/wsconsctl -w $1 shift done ) |