Want more features on Pastebin? Sign Up, it's FREE!
Guest

Kobo Touch Nickel Restart

By: KevinShort on Apr 5th, 2012  |  syntax: Bash  |  size: 0.91 KB  |  views: 1,332  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/sh
  2.  
  3. PLATFORM=freescale
  4. if [ `dd if=/dev/mmcblk0 bs=512 skip=1024 count=1 | grep -c "HW CONFIG"` == 1 ]; then
  5.         PLATFORM=ntx508
  6. fi
  7.  
  8. (
  9.  
  10.         if [ ! -e /etc/wpa_supplicant/wpa_supplicant.conf ]; then
  11.                 cp /etc/wpa_supplicant/wpa_supplicant.conf.template /etc/wpa_supplicant/wpa_supplicant.conf
  12.         fi
  13.  
  14. ) &
  15.  
  16. INTERFACE=wlan0
  17. WIFI_MODULE=ar6000
  18. if [ $PLATFORM == ntx508 ]; then
  19.         INTERFACE=eth0
  20.         WIFI_MODULE=dhd
  21. fi
  22.  
  23. export INTERFACE
  24. export WIFI_MODULE
  25.  
  26. export QWS_MOUSE_PROTO="tslib_nocal:/dev/input/event1"
  27. export QWS_KEYBOARD=imx508kbd:/dev/input/event0
  28. export QWS_DISPLAY=Transformed:imx508:Rot90
  29. export NICKEL_HOME=/mnt/onboard/.kobo
  30. export LD_LIBRARY_PATH=/usr/local/Kobo
  31. export WIFI_MODULE_PATH=/drivers/$PLATFORM/wifi/$WIFI_MODULE.ko
  32. export LANG=en_US.UTF-8
  33. export UBOOT_MMC=/etc/u-boot/$PLATFORM/u-boot.mmc
  34. export UBOOT_RECOVERY=/etc/u-boot/$PLATFORM/u-boot.recovery
  35.  
  36. /usr/local/Kobo/nickel -qws &
clone this paste RAW Paste Data