1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/serpnp/serpnp.init
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 # Desc: Serial PNP at bootup
13 # Runlevel: 20 rcX rc3 rc3 rc5
18 block_begin(start, `Serial PNP probing')
19 title "Searching for serial mices ..."
22 for x in /dev/ttyS* ; do
26 echo -n $(grep -B 1 "CLASS:" $tmp)
27 if grep -q "CLASS: MOUSE" $tmp; then
28 mode=$(grep "CLASS:" $tmp | cut -d' ' -f3)
29 echo "\nStarting: inputattach $mode $x"
30 inputattach $mode $x &
36 block_begin(stop, `Serial PNP stopping possible inputattach instances')
37 killall inputattach 2>/dev/null