Skip to content

Commit 912c40d

Browse files
more script cleanup and a readme clarification
1 parent 2119963 commit 912c40d

File tree

4 files changed

+33
-36
lines changed

4 files changed

+33
-36
lines changed

README.MD

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This is Zurk's Offline Firmware v34, backported to the Chumby Classic.
2323

2424
* You will need to change the control panel time to your correct location after bootup. Also change the brightness and sound to your preference.
2525

26-
* Ensure your chumby is activated, on the network and fully operational with the latest firmware (v1.0.7) prior to using the offline firmware.
26+
* Ensure your chumby is activated, on the network and fully operational with the included firmware (update.zip) prior to using this offline firmware.
2727

2828
* Although you do not need to activate your chumby and can run this offline firmware completely without a network, for a first time installation both network and activated chumby are recommended to make life simple. For operating in network-less environments please delete the file autoreboot.on from the chumby storage root.
2929

debugchumby

+28-31
Original file line numberDiff line numberDiff line change
@@ -8,50 +8,47 @@ rm -f /mnt/usb/tmp/*
88
# start lighttpd
99
LD_LIBRARY_PATH=/mnt/usb/lighty/lib:${LD_LIBRARY_PATH} /mnt/usb/lighty/sbin/lighttpd -m /mnt/usb/lighty/lib -f /mnt/usb/lighty/lighttpd.conf >/mnt/usb/tmp/write.ok
1010
if [ -f /mnt/usb/autoreboot.on ]; then
11-
/mnt/usb/TalkingChumby/say.sh "Welcome to Zurk's Chumby Offline Firmware v 34"
11+
/mnt/usb/TalkingChumby/say.sh "Welcome to Zurk's Chumby Offline Firmware v 34"
1212
else
13-
# rebind /scripts for /usr/chumby/scripts. disable the networking scripts as required.
14-
#/usr/bin/iwconfig wlan0 mode Ad-Hoc essid chumbynet key AAAA-1111-22 2>&1 >> /mnt/usb/ifconfig.log
15-
#/sbin/ifconfig wlan0 192.168.2.2 netmask 255.255.255.0 broadcast 192.168.2.255 2>&1 >> /mnt/usb/ifconfig.log
16-
#/sbin/ifconfig wlan0 up 2>&1 >> /mnt/usb/ifconfig.log
17-
#/sbin/ifconfig 2>&1 >> /mnt/usb/ifconfig.log
18-
#mkdir /mnt/usb/tmp
19-
#cp -r /tmp /mnt/usb/tmp
20-
#sync
21-
if [ "$stff" = "1.0.7" ]; then
22-
mount /mnt/usb/scripts -o bind /usr/chumby/scripts
23-
fi
24-
sync
25-
/mnt/usb/TalkingChumby/say.sh "Welcome to Zurk's Chumby Offline Firmware v 34 in networkless mode"
13+
# rebind /scripts for /usr/chumby/scripts. disable the networking scripts as required.
14+
#/usr/bin/iwconfig wlan0 mode Ad-Hoc essid chumbynet key AAAA-1111-22 2>&1 >> /mnt/usb/ifconfig.log
15+
#/sbin/ifconfig wlan0 192.168.2.2 netmask 255.255.255.0 broadcast 192.168.2.255 2>&1 >> /mnt/usb/ifconfig.log
16+
#/sbin/ifconfig wlan0 up 2>&1 >> /mnt/usb/ifconfig.log
17+
#/sbin/ifconfig 2>&1 >> /mnt/usb/ifconfig.log
18+
#mkdir /mnt/usb/tmp
19+
#cp -r /tmp /mnt/usb/tmp
20+
#sync
21+
if [ "$stff" = "1.0.7" ]; then
22+
mount /mnt/usb/scripts -o bind /usr/chumby/scripts
23+
fi
24+
sync
25+
/mnt/usb/TalkingChumby/say.sh "Welcome to Zurk's Chumby Offline Firmware v 34 in networkless mode"
2626
fi
2727
if [ -f /mnt/usb/tmp/write.ok ]; then
28-
sync
28+
sync
2929
else
30-
/mnt/usb/TalkingChumby/say.sh "Error the storage disk is read only"
31-
fi
32-
33-
sync
30+
/mnt/usb/TalkingChumby/say.sh "Error the storage disk is read only"
3431
fi
3532
if [ -f /mnt/usb/dlna.on ]; then
36-
cp /mnt/usb/dlna.on /tmp/dlna.on
33+
cp /mnt/usb/dlna.on /tmp/dlna.on
3734
else
38-
sync
35+
sync
3936
fi
4037
if [ -f /mnt/usb/bonjour.off ]; then
41-
cp /mnt/usb/bonjour.off /tmp/bonjour.off
38+
cp /mnt/usb/bonjour.off /tmp/bonjour.off
4239
else
43-
sync
40+
sync
4441
fi
4542
if [ -f /mnt/usb/swapfile.on ]; then
46-
rm -f /mnt/usb.swap
47-
rm -f /mnt/usb/swapfile.on
48-
/mnt/usb/TalkingChumby/say.sh "Building the 512 MegaByte swapfile"
49-
dd if=/dev/zero of=/mnt/usb/.swap bs=1 count=0 seek=512M
50-
/mnt/usb/TalkingChumby/say.sh "Making the swapfile"
51-
mkswap /mnt/usb/.swap
52-
/mnt/usb/TalkingChumby/say.sh "Swapfile built O K"
43+
rm -f /mnt/usb.swap
44+
rm -f /mnt/usb/swapfile.on
45+
/mnt/usb/TalkingChumby/say.sh "Building the 512 MegaByte swapfile"
46+
dd if=/dev/zero of=/mnt/usb/.swap bs=1 count=0 seek=512M
47+
/mnt/usb/TalkingChumby/say.sh "Making the swapfile"
48+
mkswap /mnt/usb/.swap
49+
/mnt/usb/TalkingChumby/say.sh "Swapfile built O K"
5350
else
54-
sync
51+
sync
5552
fi
5653
cp -f /mnt/usb/www/gif.swf /tmp/gif.swf
5754
cp -f /mnt/usb/www/gif.swf /tmp/sat.swf

debugchumbyearly

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
#!/bin/sh
12
if [ -f /mnt/usb/foistrun ]; then
23
cp -a /psp/ts_settings /mnt/usb/psp
34
cp -a /psp/timezone /mnt/usb/psp
45
cp -a /psp/timezone_city /mnt/usb/psp
56
cp -a /psp/clock_format /mnt/usb/psp
67
cp -a /psp/network_config /mnt/usb/psp
8+
rm -f /mnt/usb/foistrun
79
fi
810
mount /mnt/usb/psp -o bind /psp
9-
rm -f /mnt/usb/foistrun
1011
sync
1112
nice -n -20 /usr/sbin/httpd -h /mnt/usb/www -c /psp/httpd.conf

psp/zwapi.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,8 @@ if [ ! -e /tmp/zwapi.lock ]; then
110110
sync
111111
/usr/chumby/scripts/reboot_normal.sh
112112
fi
113-
fi
114-
rm -f /mnt/storage/widgetcache/*
115-
rm -f /tmp/zwapi.lock
113+
rm -f /mnt/storage/widgetcache/*
114+
rm -f /tmp/zwapi.lock
116115
else
117116
echo locked >>/mnt/usb/orangebox.txt
118117
fi

0 commit comments

Comments
 (0)