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

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


2007-11-07(Wed) 0.7.2 r2にupgarde [長年日記]

[FON]0.7.2 r2にupgarde

別件でVPNルータと利用していた、FONをひさしぶりに普通につないだらファームウェアのupgradeが来ていた。

root@OpenWrt:~# ls

dhcp.leases optrules thinclient-20071107-1308

frules pftable thinclient-20071107-1314

hostapd.conf resolv.conf usr

log run

network-config spool

そこで/tmp/thinclientの内容をチェックして、0.7.1 r5→0.7.2 r1→0.7.2 r2 というupgradeであることを知ったので、どんなupgaradeか確認

$ wget http://download.fon.com/firmware/update/0.7.1/5/upgrade.fon

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

まずは、upgrade fileをとってきて 0.7.1 r5→0.7.2 r1へのupgaradeの内容から確認

$ dd if=upgrade.fon of=fonera_0.7.1.5.fon.tgz bs=1 skip=519

$ tar tvfz fonera_0.7.1.5.fon.tgz

drwxr-xr-x root/root 0 2007-09-06 02:56 www/

-rwxr-xr-x root/root 1784 2007-09-06 02:56 www/status.sh

drwxr-xr-x root/root 0 2007-09-06 02:54 www/cgi-bin/

-rw-r--r-- iurgi/iurgi 3502 2007-10-18 21:07 upgrade_0721.tgz

-rwxr-xr-- iurgi/iurgi 923 2007-10-18 21:06 upgrade

drwxr-xr-x root/root 0 2007-08-31 19:49 sbin/

-rwxr-xr-x root/root 5776 2007-09-06 02:53 sbin/ifup

-rw-r--r-- iurgi/iurgi 113 2007-08-31 02:02 hotfix

-rw-r--r-- iurgi/iurgi 6 2007-09-24 19:57 fon_version

-rw-r--r-- iurgi/iurgi 2 2007-09-24 19:57 fon_revision

drwxr-xr-x root/root 0 2007-10-18 21:05 etc/

-rw-r--r-- root/root 193 2007-08-31 17:55 etc/hosts

drwxr-xr-x root/root 0 2007-10-18 21:05 etc/config/

-rw-r--r-- root/root 301 2007-10-18 21:05 etc/config/whitelist.dnsmasq

-rw-r--r-- iurgi/iurgi 62382 2007-08-31 19:48 dnsmasq-fon_2.38-1_mips.ipk

-rw-r--r-- iurgi/iurgi 112339 2007-09-21 01:41 coova_4-1_mips.ipk

-rw-r--r-- iurgi/iurgi 312 2007-09-24 19:57 banner

$ tar xvfz fonera_0.7.1.5.fon.tgz upgrade_0721.tgz

$ tar tvfz upgrade_0721.tgz

drwxr-xr-x root/root 0 2007-08-31 19:49 sbin/

-rwxr-xr-x root/root 5776 2007-09-06 02:53 sbin/ifup

drwxr-xr-x root/root 0 2007-10-18 21:05 etc/

-rw-r--r-- root/root 193 2007-08-31 17:55 etc/hosts

drwxr-xr-x root/root 0 2007-10-18 21:05 etc/config/

-rw-r--r-- root/root 301 2007-10-18 21:05 etc/config/whitelist.dnsmasq

drwxr-xr-x root/root 0 2007-09-06 02:56 www/

-rwxr-xr-x root/root 1784 2007-09-06 02:56 www/status.sh

drwxr-xr-x root/root 0 2007-09-06 02:54 www/cgi-bin/

どうやらネットワーク関係のupdateらしい。SSHでのloginに関係するので、修正を加えている

/etc/init.d/S50dropbear

/etc/firewall.user

/etc/firewall.fon

/bin/thinclient

などは関係していないようなので安心。次に 0.7.2 r1→0.7.2 r2へのupgradeの内容を確認

$ dd if=upgrade.fon.1 of=fonera_0.7.2.1.fon.tgz bs=1 skip=519

$ tar tvfz fonera_0.7.2.1.fon.tgz

-rw-r--r-- iurgi/iurgi 892 2007-09-27 20:18 upgrade_0722.tgz

-rwxr-xr-- iurgi/iurgi 316 2007-09-27 20:17 upgrade

-rw-r--r-- iurgi/iurgi 113 2007-09-27 20:16 hotfix

-rw-r--r-- iurgi/iurgi 2 2007-09-27 20:15 fon_revision

-rw-r--r-- iurgi/iurgi 312 2007-09-27 20:15 banner

$ tar xvfz fonera_0.7.2.1.fon.tgz upgrade_0722.tgz

$ tar tvfz upgrade_0722.tgz

drwxr-xr-x root/root 0 2007-09-27 20:18 bin/

-rwxr-xr-x root/root 1702 2007-09-27 20:18 bin/thinclient

おっと、今度はSSHログインに関係する/bin/thinclientの更新がある!

ただし、次のupgradeが来るまでは問題無いようなので、とりあえずupgradeを実行することにした

root@OpenWrt:~# . /tmp/thinclient-20071107-1314

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

upgrade.fon 100% |*****************************| 179 KB 00:00 ETA

This is a FON hotfix v2 archive

Verified OK

Upgrade name: upgrade_0721

Upgrading...

killall: watch_chilli: no process killed

Installing dnsmasq-fon (2.38-1) to root...

Configuring dnsmasq-fon

Done.

Installing coova (4-1) to root...

Configuring coova

Done.

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

killall: chilli: no process killed

killall: chilli: no process killed

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

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

This is a FON hotfix v2 archive

Verified OK

Upgrade name: upgrade_0722

Upgrading...

Connection to lafonera closed by remote host.

Connection to lafonera closed.

rebootによりいったんSSH接続が切れてしまったのでビックリしたけど、少しまってSSH loginしたら、ちゃんとupgradeされていた。

あとは、/bin/thinclientの最後の部分を修正して

# . /tmp/.thinclient.sh $1

if [ `cat /tmp/.thinclient.sh | wc -c` -le 33 ]; then

rm /tmp/.thinclient.sh

else

rm /tmp/thinclient_$1-*

cp -p /tmp/.thinclient.sh /tmp/thinclient_$1-$(date '+%Y%m%d-%H%M')

fi

めでたし めでたし

本日のPingbacks(全0件)

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