init.te: allow create sdcard link in /mnt
am: c63edee2f9

Change-Id: I354ff952b571af7114474a1b73a29237e4851ffd
diff --git a/android_dhcpcd.conf b/android_dhcpcd.conf
new file mode 100644
index 0000000..0fe3996
--- /dev/null
+++ b/android_dhcpcd.conf
@@ -0,0 +1,9 @@
+# dhcpcd configuration for Android Wi-Fi interface
+# See dhcpcd.conf(5) for details.
+
+# Disable solicitation of IPv6 Router Advertisements
+noipv6rs
+
+interface wlan0
+# dhcpcd-run-hooks uses these options.
+option subnet_mask, routers, domain_name_servers, interface_mtu
diff --git a/device.mk b/device.mk
index 97e3359..3e4c615 100644
--- a/device.mk
+++ b/device.mk
@@ -95,6 +95,7 @@
         frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
         frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
         device/linaro/hikey/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
+        device/linaro/hikey/android_dhcpcd.conf:system/etc/dhcpcd/dhcpcd.conf \
         device/linaro/hikey/audio/audio_policy.conf:system/etc/audio_policy.conf
 
 # Copy media codecs config file
diff --git a/init.hikey.rc b/init.hikey.rc
index a144ca6..07ec560 100644
--- a/init.hikey.rc
+++ b/init.hikey.rc
@@ -97,3 +97,27 @@
      disabled
      oneshot
 
+service dhcpcd_wlan0 /system/bin/dhcpcd -dABKL -f /system/etc/dhcpcd/dhcpcd.conf wlan0
+     group dhcp
+     disabled
+     oneshot
+
+service dhcpcd_eth0 /system/bin/dhcpcd -dABKL -f /system/etc/dhcpcd/dhcpcd.conf eth0
+     group dhcp
+     disabled
+     oneshot
+
+service dhcpcd_usb0 /system/bin/dhcpcd -dABKL -f /system/etc/dhcpcd/dhcpcd.conf usb0
+     group dhcp
+     disabled
+     oneshot
+
+service iprenew_usb0 /system/bin/dhcpcd -n usb0
+    class main
+    disabled
+    oneshot
+
+service dhcpcd_bt-pan /system/bin/dhcpcd -dABKL -f /system/etc/dhcpcd/dhcpcd.conf bt-pan0
+     group dhcp
+     disabled
+     oneshot