Guest User

Untitled

a guest
Aug 25th, 2011
103
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ADDR=`cat /sys/devices/platform/tegra-sdhci.0/mmc_host/mmc0/mmc0:0001/mmc0:0001:1/net/wlan0/add
  2. ress`
  3. A=`echo $ADDR | cut -d ':' -f 4`
  4. B=`echo $ADDR | cut -d ':' -f 5`
  5. C=`echo $ADDR | cut -d ':' -f 6`
  6. D=`echo $ADDR | cut -d ':' -f 3`
  7. E=`echo $ADDR | cut -d ':' -f 1`
  8. F=`echo $ADDR | cut -d ':' -f 2`
  9. line1='// BT_ADDR'
  10. line2="&0001 = 00$A $B$C 00$D $E$F"
  11. echo $line1 > /data/bluez_provider/bluecore6.psr
  12. echo $line2 >> /data/bluez_provider/bluecore6.psr
  13. cat /system/etc/bluecore6.psr >> /data/bluez_provider/bluecore6.psr
  14. echo "done" > /data/bluez_provider/bluez_reg
  15.  
  16. if [ -e /data/bluez_provider/bluez_reg ]; then
  17. echo "bluez registered"
  18. else
  19. cat /system/etc/bluecore6.psr > /data/bluez_provider/bluecore6.psr
  20. chmod 777 /data/bluez_provider/bluecore6.psr
  21. fi
  22.  
  23. mount -w -o remount -t yaffs2 /dev/block/mtdblock3 /system
  24. ln -s /data/bluez_provider/bluecore6.psr /system/etc/bluez/bluecore6.psr
RAW Paste Data