Check-in [b5721241f3]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

SHA1 Hash:b5721241f39cffc0461a709db87be76e79b51e6a
Date: 2012-04-22 23:16:27
User: BarryK
Comment:added a bit more code to pemasu's /dev/mouse fix

Tags And Properties
Changes

Changes to woof-code/rootfs-skeleton/etc/rc.d/rc.sysinit

@@ -761,11 +761,17 @@
  echo -n "input/mice" > /etc/mousedevice
  ln -snf input/mice /dev/mouse
 else
  [ "`cat /etc/mousedevice`" = "psaux" ] && echo -n "input/mice" > /etc/mousedevice
 fi
-[ ! -e /dev/mouse ] && ln -snf input/mice /dev/mouse #120423 pemasu: /dev/mouse was missing in full install.
+#120423 pemasu: /dev/mouse was missing in full install...
+MOUSELINK="`cat /etc/mousedevice`" #(refer /usr/sbin/input-wizard for examples)
+if [ ! -e /dev/$MOUSELINK ];then #precaution, in case mouse interface is gone (unlikely, being paranoid).
+ echo -n "input/mice" > /etc/mousedevice
+ ln -snf input/mice /dev/mouse
+fi
+[ ! -e /dev/mouse ] && ln -s $MOUSELINK /dev/mouse
 
 #recognise keyboard...
 #echo -n ' keyboard' >/dev/console
 /etc/rc.d/rc.country ;STATUS=$((STATUS+$?)) #this asks for keyboard layout.