mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
DHCP-Client initialisiert nun die Firewall korrekt!
Neues Wrapper-Script fuer multiple Redirectors im Squid. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@672 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -35,7 +35,7 @@ case "$2" in
|
||||
/sbin/iptables -A REDINPUT -p udp --source-port 67 --destination-port 68 -i ${1} -j ACCEPT
|
||||
fi
|
||||
|
||||
DHCP_START="-N -R -L /var/ipfire/dhcpc "
|
||||
DHCP_START="-N -R -L /var/ipfire/dhcpc -c /var/ipfire/dhcpc/dhcpcd.exe "
|
||||
|
||||
if [ -n "${DHCP_HOSTNAME}" ]; then
|
||||
DHCP_START+="-h ${DHCP_HOSTNAME} "
|
||||
@@ -91,7 +91,7 @@ case "$2" in
|
||||
# Do nothing with the client daemon if we have an infinate
|
||||
# lease time as the client exits when started in this case,
|
||||
# just echo OK.
|
||||
DHCP_STOP="-k"
|
||||
DHCP_STOP="-k -c /var/ipfire/dhcpc/dhcpcd.exe "
|
||||
if [ -e $LEASEINFO ]
|
||||
then
|
||||
. $LEASEINFO
|
||||
|
||||
@@ -16,7 +16,7 @@ VARNAME='[A-Za-z_][A-zA-z0-9_]*'
|
||||
VARCHARS='A-Za-z0-9=/,._@#+-'
|
||||
VARVAL="[${VARCHARS}]*"
|
||||
|
||||
sed -ne "s/^\(${VARNAME}\)=\(${VARVAL}\)$/\1=\2/p" $1
|
||||
sed -ne "s/\(${VARNAME}\)=\(${VARVAL}\)$/\1=\2/p" $1
|
||||
|
||||
# Accept space only if it's quoted
|
||||
sed -ne "s/^\(${VARNAME}\)=\('[ ${VARCHARS}]*'\)$/\1=\2/p" $1
|
||||
sed -ne "s/\(${VARNAME}\)=\('[ ${VARCHARS}]*'\)$/\1=\2/p" $1
|
||||
|
||||
Reference in New Issue
Block a user