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:
ms
2007-07-11 13:17:37 +00:00
parent e001bff30f
commit a393e0ba12
4 changed files with 73 additions and 8 deletions

View File

@@ -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

View File

@@ -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