#!/bin/sh /bin/run-parts --arg=$1 /etc/udhcpc.d [링크 : http://www.doit.org/udhcpc/udhcpc.script] |
#!/bin/sh # /etc/init.d/udhcpc: start or stop udhcpc client set -e PATH=/bin:/usr/bin:/sbin:/usr/sbin DAEMON=/sbin/udhcpc test -x $DAEMON || exit 0 case "$1" in start) echo -n "Starting DHCP client: udhcpc" start-stop-daemon --start --quiet --exec $DAEMON \ -- --script=/etc/udhcpc.script || echo -n " already running" echo "." ;; restart) /etc/init.d/udhcpc stop /etc/init.d/udhcpc start ;; reload) ;; force-reload) ;; stop) echo -n "Stopping DHCP client: udhcpc" start-stop-daemon --stop --quiet --exec $DAEMON || echo -n " not running" echo "." ;; renew) start-stop-daemon --signal USR1 --stop --quiet --exec $DAEMON || echo -n " not running" ;; release) start-stop-daemon --signal USR2 --stop --quiet --exec $DAEMON || echo -n " not running" ;; *) echo "Usage: /etc/init.d/udhcpc {start|stop|restart|reload|force-reload}" exit 1 ;; esac exit 0 [링크 : http://www.doit.org/udhcpc/udhcpc] |
[링크 : http://www.doit.org/udhcpc/]
'프로그램 사용 > busybox' 카테고리의 다른 글
busybox ash 주의사항? (2) | 2009.08.06 |
---|---|
비지박스 핑간격 조절하기 - busybox ping interval (0) | 2009.08.05 |
Busybox build option - "Build BusyBox as a static binary (no shared libs)" (0) | 2009.07.30 |
busybox dhcp 사용하기 - udhcpc/udhcpd (0) | 2009.07.29 |
busybox에서 ping이 안될경우 (0) | 2009.07.23 |