32 lines
339 B
Bash
32 lines
339 B
Bash
#!/bin/sh
|
|
#
|
|
|
|
. /etc/profile
|
|
|
|
case $1 in
|
|
'start')
|
|
killall irattach
|
|
sleep 1
|
|
rmmod irtty_sir
|
|
rmmod sir_dev
|
|
rmmod ircomm_tty
|
|
sleep 1
|
|
/usr/sbin/kbdd -c /etc/kbdd.conf > /dev/null 2>&1 &
|
|
;;
|
|
|
|
'stop')
|
|
killall kbdd
|
|
;;
|
|
|
|
'restart')
|
|
$0 stop
|
|
$0 start
|
|
;;
|
|
|
|
*)
|
|
echo "usage: $0 { start | stop | restart }"
|
|
;;
|
|
|
|
esac
|
|
|