Line 0
Link Here
|
|
|
1 |
#!/bin/sh |
2 |
|
3 |
. /etc/control.d/functions |
4 |
|
5 |
CONFIG=/etc/sysconfig/dhcpd |
6 |
|
7 |
new_summary 'Chrootedness of the ISC DHCPD server' |
8 |
|
9 |
new_subst disabled \ |
10 |
'^CHROOT="-j / -lf /var/lib/dhcp/dhcpd/state/dhcpd.leases"$' \ |
11 |
's/^#\(CHROOT="-j \/ -lf \/var\/lib\/dhcp\/dhcpd\/state\/dhcpd.leases"\)$/\1/' |
12 |
new_help disabled 'Disable chrootedness of the ISC DHCPD server' |
13 |
|
14 |
new_subst enabled \ |
15 |
'^#CHROOT="-j / -lf /var/lib/dhcp/dhcpd/state/dhcpd.leases"$' \ |
16 |
's/^CHROOT=/#&/' |
17 |
new_help enabled 'Enable chrootedness of the ISC DHCPD server' |
18 |
|
19 |
control_subst "$CONFIG" "$*" |