summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-02-12 04:26:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-02-12 04:26:34 +0000
commit10eba33054d022e5b3709c1234e34aaa5ac61ed0 (patch)
treedee8d4ba5eee267439e272366940052b168ff8df
parentbb3e7e2421a824e1e1c4ff2993438dc3adb2a0f6 (diff)
at minimum this should be indented right, although I still think it is utterly wrong
-rw-r--r--etc/rc.wscons178
1 files changed, 89 insertions, 89 deletions
diff --git a/etc/rc.wscons b/etc/rc.wscons
index 43d27c4a413..5d853441075 100644
--- a/etc/rc.wscons
+++ b/etc/rc.wscons
@@ -1,4 +1,4 @@
-# $OpenBSD: rc.wscons,v 1.1 2001/02/10 17:51:47 mickey Exp $
+# $OpenBSD: rc.wscons,v 1.2 2001/02/12 04:26:33 deraadt Exp $
# $NetBSD: rc.wscons,v 1.3 1999/05/15 14:28:14 drochner Exp $
wscfg=/usr/sbin/wsconscfg
@@ -9,25 +9,25 @@ DOIT=
while [ $# -gt 0 ]; do
case $1 in
- -n)
- DOIT=echo
- ;;
- -f)
- config=$2
- shift
- ;;
- -font)
- wsfld=$2
- shift
- ;;
- -screen)
- wscfg=$2
- shift
- ;;
- *)
- echo $usage
- exit 1
- ;;
+ -n)
+ DOIT=echo
+ ;;
+ -f)
+ config=$2
+ shift
+ ;;
+ -font)
+ wsfld=$2
+ shift
+ ;;
+ -screen)
+ wscfg=$2
+ shift
+ ;;
+ *)
+ echo $usage
+ exit 1
+ ;;
esac
shift
done
@@ -38,80 +38,80 @@ done
# font name width height enc file
( while read type arg1 arg2 arg3 arg4 arg5; do
case "$type" in
- \#*|"")
- continue
- ;;
- font)
- name=$arg1
- width=$arg2
- height=$arg3
- enc=$arg4
- file=$arg5
- cmd=$wsfld
+ \#*|"")
+ continue
+ ;;
+ font)
+ name=$arg1
+ width=$arg2
+ height=$arg3
+ enc=$arg4
+ file=$arg5
+ cmd=$wsfld
- case $width in
- -)
- ;;
- *)
- cmd="$cmd -w $width"
- ;;
- esac
- case $height in
- -)
- ;;
- *)
- cmd="$cmd -h $height"
- ;;
- esac
- case $enc in
- -)
- ;;
- *)
- cmd="$cmd -e $enc"
- ;;
- esac
- cmd="$cmd -N $name $file"
- eval $DOIT $cmd
+ case $width in
+ -)
+ ;;
+ *)
+ cmd="$cmd -w $width"
;;
- screen)
- idx=$arg1
- scr=$arg2
- emul=$arg3
- cmd=$wscfg
+ esac
+ case $height in
+ -)
+ ;;
+ *)
+ cmd="$cmd -h $height"
+ ;;
+ esac
+ case $enc in
+ -)
+ ;;
+ *)
+ cmd="$cmd -e $enc"
+ ;;
+ esac
+ cmd="$cmd -N $name $file"
+ eval $DOIT $cmd
+ ;;
+ screen)
+ idx=$arg1
+ scr=$arg2
+ emul=$arg3
+ cmd=$wscfg
- case $scr in
- -)
- ;;
- *)
- cmd="$cmd -t $scr"
- ;;
- esac
- case $emul in
- -)
- ;;
- *)
- cmd="$cmd -e $emul"
- ;;
- esac
- cmd="$cmd $idx"
- eval $DOIT $cmd
+ case $scr in
+ -)
+ ;;
+ *)
+ cmd="$cmd -t $scr"
+ ;;
+ esac
+ case $emul in
+ -)
;;
- keyboard)
- kbd=$arg1
- cmd=$wscfg
- case $kbd in
- -|auto)
- cmd="$cmd -k"
- ;;
- *)
- cmd="$cmd -k $kbd"
- ;;
- esac
- eval $DOIT $cmd
+ *)
+ cmd="$cmd -e $emul"
;;
- mux)
- cmd="$wscfg -m $arg1"
- eval $DOIT $cmd
+ esac
+ cmd="$cmd $idx"
+ eval $DOIT $cmd
+ ;;
+ keyboard)
+ kbd=$arg1
+ cmd=$wscfg
+ case $kbd in
+ -|auto)
+ cmd="$cmd -k"
+ ;;
+ *)
+ cmd="$cmd -k $kbd"
;;
+ esac
+ eval $DOIT $cmd
+ ;;
+ mux)
+ cmd="$wscfg -m $arg1"
+ eval $DOIT $cmd
+ ;;
esac
done ) < $config