#! /bin/sh echo "Run commands DHCPD starting" %config dhcpd_enable="yes" hacking="ofcourse" %test echo "Just an echo to test dhcpd" %start -p 220 -u root echo "Pri 220" opServiceEnabled dhcpd || exit 0 /sw/sbin/dhcpd %gotest echo "Doing gotest section in file rc.dhcpd" ping -a -c 4 dt1.dev.de.cw.net curl -s ftp://ftp.openpkg.org/current/SRC/ | grep openssl date echo $0 if [ $hacking = ofcourse ]; then echo "Yes, of course" else echo "There is no hacking" fi # cat $0 %stop -p 200 -u root opServiceEnabled dhcpd || exit 0 kill -TERM `cat /sw/var/dhcpd/dhcpd.pid` echo "Run commands DHCPD finishing" echo