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 neededchanged=`/usr/sbin/hwscan --mouse`
16 if [ -n "$neededchanged" ] ; then
17   has_keyboard && /sbin/yast2 mouse reprobe
18 fi
19
20 neededchanged=`/usr/sbin/hwscan --gfxcard`
21 if [ -n "$neededchanged" ] ; then
22   has_keyboard && /sbin/yast2 x11 reprobe
23 fi
24
25 /usr/sbin/hwscan --pci
26 /usr/sbin/hwscan --isapnp
27 /usr/sbin/hwscan --cdrom
28 /usr/sbin/hwscan --disk
29
30 exit 0