X-Git-Url: http://git.pjr.cc/?p=wyse_ntpd.git;a=blobdiff_plain;f=src%2Fbuildroot-2013.05%2Fcustom%2Ffilesystem%2Fetc%2Finit.d%2FS01custom_pre_startup;fp=src%2Fbuildroot-2013.05%2Fcustom%2Ffilesystem%2Fetc%2Finit.d%2FS01custom_pre_startup;h=c9670a97dc466d1ef8ae112d96e0e9d3b221cafd;hp=32ffa1624cb3de5a72904348cfc554acaca8179f;hb=f43263b21397ec7665c4a8094771007d668c102f;hpb=de342e69b3a69f09cc0e1474b5d588f0cf6d28b3 diff --git a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S01custom_pre_startup b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S01custom_pre_startup index 32ffa16..c9670a9 100755 --- a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S01custom_pre_startup +++ b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S01custom_pre_startup @@ -37,6 +37,9 @@ then cd $RD fi +# bring the interface up for a bit +ifconfig eth0 up + # create the interfaces layout echo "Setting up network interfaces configuration" echo ".... loopback" @@ -83,7 +86,7 @@ EOF then echo ".... eth0 - search domain $NET_SEARCH_DOMAIN" cat << EOF >> /etc/network/interfaces -gateway $NET_SEARCH_DOMAIN +dns-search $NET_SEARCH_DOMAIN EOF fi @@ -92,7 +95,7 @@ EOF then echo ".... eth0 - dns servers $NET_DNS_SERVERS" cat << EOF >> /etc/network/interfaces -gateway $NET_DNS_SERVERS +dns-nameservers $NET_DNS_SERVERS EOF fi @@ -107,10 +110,10 @@ ln -s /dev/ttyS0 /dev/gps0 # addatch the pps device ldattach pps /dev/ttyS0 # find the minor/major numbers of the device and create -if [ -f /sys/class/pps/pps*/dev ] +if [ -f /sys/class/pps/pps0/dev ] then - PPSMAJOR=`cat /sys/class/pps/pps*/dev|cut -f1 -d:` - PPSMINOR=`cat /sys/class/pps/pps*/dev|cut -f2 -d:` + PPSMAJOR=`cat /sys/class/pps/pps0/dev|cut -f1 -d:` + PPSMINOR=`cat /sys/class/pps/pps0/dev|cut -f2 -d:` echo ".... pps0" mknod -m 0664 /dev/pps0 c $PPSMAJOR $PPSMINOR echo ".... gpspps0"