From eefef3234ae1e3b0f2db71415f134c7ec49899fa Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Thu, 2 Jul 2009 12:08:13 -0700 Subject: [PATCH] Set the permissions of wifi supplicant file so that system can access it. Create the required directories and set the correct owner and permissions. --- rootdir/init.rc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index ac066fad2..d318aa3c2 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -78,6 +78,11 @@ loglevel 3 mkdir /data/misc/keystore 0770 keystore keystore mkdir /data/misc/vpn 0770 system system mkdir /data/misc/vpn/profiles 0770 system system + mkdir /data/misc/wifi 0770 wifi system + chown wifi system /data/misc/wifi + touch /data/misc/wifi/wpa_supplicant.conf + chmod 0660 /data/misc/wifi/wpa_supplicant.conf + chown wifi system /data/misc/wifi/wpa_supplicant.conf mkdir /data/local 0771 shell shell mkdir /data/local/tmp 0771 shell shell mkdir /data/data 0771 system system