Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

bootable-newinstaller: 提交

bootable/newinstaller


Commit MetaInfo

修订版536b3f78d5d4a18a22ae886048dd48144f104e5d (tree)
时间2010-02-03 15:54:18
作者Chih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

0-auto-detect: correct dhcpcd options

Add options to avoid forking and request domain_name_servers.

更改概述

差异

--- a/initrd/scripts/0-auto-detect
+++ b/initrd/scripts/0-auto-detect
@@ -31,6 +31,7 @@ find_network_dev_name()
3131 rmline=`grep -n "#REMOVE FROM HERE" init.rc|cut -d':' -f1`
3232 rmline=`expr $rmline + 1`
3333 sed -i -e "$rmline,\$d" init.rc
34+ dhcpcdopts="-o domain_name_servers -BKL"
3435 for netdev in `ls /sys/class/net`; do
3536 if [ $netdev = "lo" -o $netdev = "wmaster0" ]; then
3637 continue
@@ -42,10 +43,8 @@ find_network_dev_name()
4243 wififound=1
4344 fi
4445 fi
45- echo "service dhcpcd$netdev /system/bin/dhcpcd $netdev" >> init.rc
46- echo " group system dhcp" >> init.rc
47- echo " disabled" >>init.rc
48- echo " oneshot" >> init.rc
46+ echo "service dhcpcd$netdev /system/bin/dhcpcd $dhcpcdopts $netdev" >> init.rc
47+ echo -e " group system dhcp\n disabled\n oneshot\n" >> init.rc
4948 done
5049 }
5150
Show on old repository browser