#!/bin/sh

#Install all the debian packages that labquest relies on
dpkg -i dependencies/*.deb

#Install files
cp -r usr/* /usr
cp -r opt/* /opt
cp -r etc/* /etc

#Install the ldusb driver for the go devices.
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/misc
cp ldusb.ko /lib/modules/`uname -r`/kernel/drivers/usb/misc/
/sbin/depmod

cd /opt/xandros/share/AsusLauncher
grep labquest simpleui.rc
if [ $? -eq 1 ] ; then 
  cp simpleui.rc simpleui.rc.bkup
  head --lines=-1 simpleui.rc.bkup > simpleui.rc
  cat labquest.rc >> simpleui.rc
fi
