Diff of /sdcard/lejosfs/home/root/lejos/bin/init [1681c8] .. [4a107a] Maximize Restore

  Switch to unified view

a/sdcard/lejosfs/home/root/lejos/bin/init b/sdcard/lejosfs/home/root/lejos/bin/init
1
#! /bin/sh
1
#! /bin/sh
2
mod=/home/root/lejos
2
. /etc/default/lejos
3
sync
3
sync
4
4
5
var=$(printf 'HostStr=%s SerialStr=%s' $(cat /home/root/lms2012/sys/settings/BrickName) $(cat /home/root/lms2012/sys/settings/BTser))
5
var=$(printf 'HostStr=%s SerialStr=%s' $(cat ${LMS2012_SETTINGS}/BrickName) $(cat ${LMS2012_SETTINGS}/BTser))
6
echo $var > /home/root/lms2012/sys/settings/UsbInfo.dat
6
echo $var > ${LMS2012_SETTINGS}/UsbInfo.dat
7
7
8
insmod $mod/mod/d_iic.ko `cat /home/root/lms2012/sys/settings/HwId`
8
insmod ${LEJOS_MODULES}/d_iic.ko `cat ${LMS2012_SETTINGS}/HwId`
9
insmod $mod/mod/d_uart.ko `cat /home/root/lms2012/sys/settings/HwId`
9
insmod ${LEJOS_MODULES}/d_uart.ko `cat ${LMS2012_SETTINGS}/HwId`
10
insmod $mod/mod/d_power.ko `cat /home/root/lms2012/sys/settings/HwId`
10
insmod ${LEJOS_MODULES}/d_power.ko `cat ${LMS2012_SETTINGS}/HwId`
11
insmod $mod/mod/d_pwm.ko `cat /home/root/lms2012/sys/settings/HwId`
11
insmod ${LEJOS_MODULES}/d_pwm.ko `cat ${LMS2012_SETTINGS}/HwId`
12
insmod $mod/mod/d_ui.ko `cat /home/root/lms2012/sys/settings/HwId`
12
insmod ${LEJOS_MODULES}/d_ui.ko `cat ${LMS2012_SETTINGS}/HwId`
13
insmod $mod/mod/d_analog.ko `cat /home/root/lms2012/sys/settings/HwId`
13
insmod ${LEJOS_MODULES}/d_analog.ko `cat ${LMS2012_SETTINGS}/HwId`
14
#insmod $mod/mod/d_usbdev.ko `cat /home/root/lms2012/sys/settings/UsbInfo.dat`
14
#insmod ${LEJOS_MODULES}/d_usbdev.ko `cat ${LMS2012_SETTINGS}/UsbInfo.dat`
15
insmod $mod/mod/d_usbhost.ko
15
insmod ${LEJOS_MODULES}/d_usbhost.ko
16
insmod $mod/mod/d_sound.ko `cat /home/root/lms2012/sys/settings/HwId`
16
insmod ${LEJOS_MODULES}/d_sound.ko `cat ${LMS2012_SETTINGS}/HwId`
17
insmod $mod/mod/d_bt.ko `cat /home/root/lms2012/sys/settings/HwId`
17
insmod ${LEJOS_MODULES}/d_bt.ko `cat ${LMS2012_SETTINGS}/HwId`
18
18
19
chmod 666 /dev/lms_pwm
19
chmod 666 /dev/lms_pwm
20
chmod 666 /dev/lms_motor
20
chmod 666 /dev/lms_motor
21
chmod 666 /dev/lms_analog
21
chmod 666 /dev/lms_analog
22
chmod 666 /dev/lms_dcm
22
chmod 666 /dev/lms_dcm