File boot.braille of Package kiwi-config-openSUSE
#! /bin/sh
# Copyright (c) 1995-2003 SuSE Linux AG, Nuernberg, Germany.
# All rights reserved.
#
### BEGIN INIT INFO
# Provides: boot.braille
# Required-Start: $local_fs
# Required-Stop:
# Default-Start: B
# Default-Stop:
# Description: read cmdline
### END INIT INFO
# First reset status of this service
. /etc/rc.status
rc_reset
case "$1" in
start)
if [ ! -z `grep -o "braille=1" /proc/cmdline` ];then
. /usr/lib/YaST2/startup/common/functions.sh
#=============================================
# Create Braille config
#---------------------------------------------
/usr/sbin/hwinfo --special=braille
import_install_inf
if [ ! -z "$Braille" ];then
sed -e "s#brlname=.*#brlname=$Braille#" \
-e "s#brlport=.*#brlport=$Brailledevice#" /etc/suse-blinux.conf \
>/tmp/suse-blinux.conf
mv -f /tmp/suse-blinux.conf /etc
fi
fi
rc_status -v
;;
stop)
;;
try-restart)
rc_status
;;
restart)
rc_status
;;
try-restart-iburst)
rc_status
;;
force-reload)
# Does not support signalling to reload
$0 try-restart
rc_status
;;
reload)
rc_status -v
;;
status)
rc_status -v
;;
probe)
rc_failed 3
;;
*)
echo "Usage: $0 {start|stop|status|try-restart|restart|try-restart-iburst|force-reload|reload|probe|ntptimeset}"
exit 1
;;
esac
rc_exit