This commit was manufactured by cvs2svn to create tag
[opensuse:hwinfo.git] / hwbootscan
1 #!/bin/sh
2
3 function has_keyboard {
4   if [ ! "$kbd_ok" ] ; then
5     hwinfo --keyboard | grep -q keyboard
6     kbd_ok=$?
7   fi
8   return $kbd_ok
9 }
10
11 kbd_ok=
12
13 rm -f /var/lib/hardware/LOCK
14
15 # do not scan serial mice, it may hang ...
16 /usr/sbin/hwscan --fast --mouse
17
18 neededchanged=`/usr/sbin/hwscan --gfxcard`
19 if [ -n "$neededchanged" ] ; then
20   has_keyboard && /sbin/yast2 x11 reprobe
21 fi
22
23 /usr/sbin/hwscan --pci
24 /usr/sbin/hwscan --isapnp
25 /usr/sbin/hwscan --cdrom
26 /usr/sbin/hwscan --disk
27
28 exit 0