↑日記で日々積み重ねた情報をトップの「わんこのページ」にまとめています。

おのたく日記 [RDF] YouTubeも始めました→


2007-12-30(Sun) 0.7.2 r3にupgarde [長年日記]

[FON]0.7.2 r3にupgarde

けさ、ふと気がつくと、Firmware Information - Changlogには、まだ出ていないけど、Lafoneraの新しいファームが出ているらしいことに気がついた。

root@OpenWrt:~# ls -CF

dhcp.leases spool/

hostapd.conf thinclient_cron-20071230-1544

log/ usr/

network-config wget.out

resolv.conf whitelist.cache

run/

# cat thinclient_cron-20071230-1544

cd /tmp

wget http://download.fon.com/firmware/update/0.7.2/2/upgrade.fon

/bin/fonverify /etc/public_fon_rsa_key.der /tmp/upgrade.fon

if [ $? -eq 0 ]; then

/sbin/reboot

fi

# killall chilli

rm -f /tmp/.thinclient.sh

exit

と「thinclient_cron-20071230-1544」と新しいファームが来ているようなので、11月7日の日記を参考に早速中身をチェックした。

$ wget http://download.fon.com/firmware/update/0.7.2/2/upgrade.fon

$ dd if=upgrade.fon of=lafonera_0.7.2.2.fon.tgz bs=1 skip=519

$ tar tvfz lafonera_0.7.2.2.fon.tgz

-rw-r--r-- iurgi/iurgi 1726 2007-11-22 00:19 upgrade_0723.tgz

-rwxr-xr-- iurgi/iurgi 350 2007-12-04 18:49 upgrade

-rw-r--r-- iurgi/iurgi 113 2007-11-21 01:49 hotfix

-rw-r--r-- iurgi/iurgi 2 2007-11-21 01:50 fon_revision

-rw-r--r-- iurgi/iurgi 312 2007-11-21 01:50 banner

$ cat upgrade

#!/bin/sh

# $Id$

VERSION=$( cat /etc/fon_version )

REVISION=$( cat /etc/fon_revision )

if [ $VERSION = "0.7.2" ] && [ $REVISION = "2" ];

then

echo Upgrading...

# body of the upgrade

tar xzf upgrade_0723.tgz -C /

# Finish upgrade

/etc/init.d/N50chillispot reload

cp banner /etc/

cp fon_revision /etc/

exit 0

else

exit 1

fi

$ tar xvfz lafonera_0.7.2.2.fon.tgz

$ tar tvfz upgrade_0723.tgz

drwxr-xr-x root/root 0 2007-11-22 00:13 etc/

drwxr-xr-x root/root 0 2007-11-22 00:18 etc/init.d/

-rwxr-xr-x root/root 131 2007-11-22 00:18 etc/init.d/N10conncheck

-rwxr-xr-x root/root 3747 2007-11-22 00:17 etc/init.d/N50chillispot

と言う感じでSSH login関係には何にも関係なさそうなので

root@OpenWrt:~# . ./thinclient_cron-20071230-1544

Connecting to download.fon.com[213.134.45.191]:80

upgrade.fon 100% |*****************************| 3027 00:00 ETA

This is a FON hotfix v2 archive

Verified OK

Upgrade name: upgrade_0723

Upgrading...

/etc/init.d/N50chillispot: /etc/init.d/N50chillispot: 181: reload: not found

Connection to lafonera closed by remote host.

Connection to lafonera closed.

として実行した。ありN50chillispotにreloadオプションは無いんじゃん…

でも正常にrebootして0.7.2 r3になった。

Lafoneraステータス

本日のPingbacks(全0件)

Google Web検索 on-o.com内を検索