Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

udhcpc-post 931B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. # $Id$
  3. if [ "$1" = "deconfig" ]; then
  4. ifconfig $interface 0.0.0.0 up
  5. else if [ "$1" = "bound" ] ; then
  6. echo UDHCPC: I am $ip [$hostname], booting from $serverid
  7. [ -n "$hostname" ] && echo $hostname > /proc/sys/kernel/hostname
  8. [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
  9. [ -n "$subnet" ] && NETMASK="netmask $subnet"
  10. ifconfig $interface $ip $BROADCAST $NETMASK
  11. route add default gw $router dev $interface
  12. echo -n > /etc/resolv.conf
  13. for i in $dns; do
  14. echo nameserver $i >> /etc/resolv.conf
  15. done
  16. [ -n "$siaddr" ] || siaddr=$serverid
  17. [ -n "$rootpath" ] || rootpath=$siaddr:/
  18. echo Mounting root filesystem $rootpath at /sysroot
  19. echo If this appears to hang, check that the server of $rootpath is able to
  20. echo reverse-map my IP address $ip to obtain my hostname $hostname
  21. mount -t nfs -o nolock,rsize=8192,wsize=8192 $rootpath /sysroot
  22. fi
  23. fi