Line
Link Here
|
0 |
-- /usr/portage/net-misc/dhcp/files/dhcpd.init2 2009-07-09 14:45:22.000000000 +0000 |
0 |
++ /etc/init.d/dhcpd 2009-08-19 16:33:40.000000000 +0000 |
Lines 18-28
Link Here
|
18 |
} |
18 |
} |
19 |
|
19 |
|
20 |
checkconfig() { |
20 |
checkconfig() { |
21 |
/usr/sbin/dhcpd -cf ${DHCPD_CHROOT}/${DHCPD_CONF} -t 1>/dev/null 2>&1 |
21 |
/usr/sbin/dhcpd -cf ${DHCPD_CONF} ${DHCPD_CHROOT:+-chroot} ${DHCPD_CHROOT} -t 1>/dev/null 2>&1 |
22 |
ret=$? |
22 |
ret=$? |
23 |
if [ $ret -ne 0 ]; then |
23 |
if [ $ret -ne 0 ]; then |
24 |
eerror "${SVCNAME} has detected a syntax error in your configuration files:" |
24 |
eerror "${SVCNAME} has detected a syntax error in your configuration files:" |
25 |
/usr/sbin/dhcpd -cf ${DHCPD_CHROOT}/${DHCPD_CONF} -t |
25 |
/usr/sbin/dhcpd -cf ${DHCPD_CONF} ${DHCPD_CHROOT:+-chroot} ${DHCPD_CHROOT} -t |
26 |
fi |
26 |
fi |
27 |
|
27 |
|
28 |
return $ret |
28 |
return $ret |