From: Danny Jeongseok Seo Date: Thu, 19 Jul 2012 04:25:04 +0000 (+0900) Subject: Add a vconf key for local MAC address of Wi-Fi device X-Git-Tag: 2.0_alpha~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1403fd3b5839205f6e228ef6ecde860e7be18bb6;p=platform%2Fcore%2Fconnectivity%2Fnet-config.git Add a vconf key for local MAC address of Wi-Fi device --- diff --git a/debian/changelog b/debian/changelog index a19f990..21d26ae 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +net-config (0.1.76) unstable; urgency=low + + * Add a vconf key for local MAC address of Wi-Fi device + * Git: slp/pkgs/n/net-config + * Tag: net-config_0.1.76 + + -- JaeHyun Kim Tue, 17 Apr 2012 10:28:08 +0900 + net-config (0.1.75) unstable; urgency=low * Modify background scan policy diff --git a/debian/net-config.postinst b/debian/net-config.postinst index 030d494..a3f5f59 100644 --- a/debian/net-config.postinst +++ b/debian/net-config.postinst @@ -13,6 +13,8 @@ vconftool set -t string memory/dnet/proxy "" -i vconftool set -t string memory/wifi/connected_ap_name "" -i +vconftool set -t string db/wifi/bssid_address "" + #Default Call Statistics vconftool set -t int db/dnet/statistics/cellular/totalsnt "0" vconftool set -t int db/dnet/statistics/cellular/totalrcv "0" diff --git a/packaging/net-config.spec b/packaging/net-config.spec index 5a565ce..f744e56 100644 --- a/packaging/net-config.spec +++ b/packaging/net-config.spec @@ -2,7 +2,7 @@ Name: net-config Summary: TIZEN Network Configuration Module -Version: 0.1.75 +Version: 0.1.76 Release: 1 Group: System/Network License: Apache License Version 2.0 diff --git a/resources/etc/rc.d/init.d/net-config b/resources/etc/rc.d/init.d/net-config index eb3821e..c9be073 100755 --- a/resources/etc/rc.d/init.d/net-config +++ b/resources/etc/rc.d/init.d/net-config @@ -4,3 +4,10 @@ dlogutil -v threadtime -f /var/log/libnetwork.log -r 1000 -n 10 network & dlogutil -v threadtime -f /var/log/net-config.log -r 1000 -n 10 net-config & /usr/sbin/net-config & + +bssid="$(vconftool -t string get db/wifi/bssid_address | sed -n "/\([0-9A-F][0-9A-F]:\)\{5\}[0-9A-F][0-9A-F]/p")" +if [ "$bssid" = "" ]; then + if [ -f /opt/etc/.mac.info ]; then + cat /opt/etc/.mac.info | sed -n "/^\([0-9A-F][0-9A-F]:\)\{5\}[0-9A-F][0-9A-F]$/p" | xargs vconftool set -t string db/wifi/bssid_address + fi +fi \ No newline at end of file