/usr/sbin/dhcpd -q -cf $config_file -lf $lease_file
- if [ $$ -eq 0 ]; then
+ if [ $? -eq 0 ]; then
echo " isc-dhcpd failed to start"
fi
}
if [ -e $pid_file ]; then
kill `cat $pid_file`
- if [ $$ -eq 0 ]; then
+ if [ $? -eq 0 ]; then
echo " PID " `cat $pid_file` not found
echo " Is the DHCP server running?"
fi