microcore-mininit - stripped down Tiny Core Linux

bootlocal.sh 364B

12345678910
  1. #!/bin/sh
  2. # put other system startup commands here
  3. # configure eth0 with DHCP
  4. /sbin/udhcpc -b -i eth0 -x hostname:$(/bin/hostname) -p /var/run/udhcpc.eth0.pid >/dev/null 2>&1 &
  5. # alternatively configure static interface address and route
  6. #ifconfig eth0 x.x.x.x netmask 255.255.255.0 up
  7. #route add default gw y.y.y.y
  8. #echo 'nameserver z.z.z.z' > /etc/resolv.conf