Browse Source

at minimum this should be indented right, although I still think it is utterly wrong

OPENBSD_2_9
deraadt 24 years ago
parent
commit
8717c41932
1 changed files with 89 additions and 89 deletions
  1. +89
    -89
      src/etc/rc.wscons

+ 89
- 89
src/etc/rc.wscons View File

@ -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 $ # $NetBSD: rc.wscons,v 1.3 1999/05/15 14:28:14 drochner Exp $
wscfg=/usr/sbin/wsconscfg wscfg=/usr/sbin/wsconscfg
@ -9,25 +9,25 @@ DOIT=
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
case $1 in 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 esac
shift shift
done done
@ -38,80 +38,80 @@ done
# font name width height enc file # font name width height enc file
( while read type arg1 arg2 arg3 arg4 arg5; do ( while read type arg1 arg2 arg3 arg4 arg5; do
case "$type" in 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 esac
done ) < $config done ) < $config

Loading…
Cancel
Save