From a3d770eaeb6c7068786cebecfdd20e255bf7cb90 Mon Sep 17 00:00:00 2001 From: Bryan Stine Date: Fri, 1 Jul 2011 01:33:55 -0400 Subject: [PATCH] Add transition for tiwlan0 rename on existing data images. --- init | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init b/init index 337dbc2..7ded77f 100755 --- a/init +++ b/init @@ -580,6 +580,13 @@ cp /proc/cmdline /tmp/cmdline sed -i -e "s:$: androidboot.serialno=${SERIALNO}:" /tmp/cmdline mount --bind /tmp/cmdline /proc/cmdline +# Transition sequence for FRX06->FRX07 (tiwlan0 renamed) +if [ -f "/data/misc/wifi/wpa_supplicant.conf" ] +then + sed -i -e 's:=tiwlan0:=wlan0:' /data/misc/wifi/wpa_supplicant.conf + chown 1000:1010 /data/misc/wifi/wpa_supplicant.conf +fi + # Bind-mount /sdcard/.android_secure to /mnt/secure/asec for native Apps2SD mount --bind /sdcard/.android_secure /mnt/secure/asec -- 2.1.4