Révision ab3c1e24
Ajouté par Renato Botelho il y a presque 10 ans
sbin/dhclient-script | ||
---|---|---|
62 | 62 |
$LOGGER "Starting delete_old_states()" |
63 | 63 |
# If the IP changed, remove states from the old one |
64 | 64 |
if [ -f /var/db/${interface}_ip ]; then |
65 |
OLD_IP=`cat /var/db/${interface}_ip`
|
|
65 |
OLD_IP = `cat /var/db/${interface}_ip`
|
|
66 | 66 |
$LOGGER "Comparing IPs: Old: ${OLD_IP} New: ${new_ip_address}" |
67 | 67 |
if [ -n "${OLD_IP}" ] && [ "${OLD_IP}" != "${new_ip_address}" ]; then |
68 | 68 |
$LOGGER "Removing states from old IP '${OLD_IP}' (new IP '${new_ip_address}')" |
... | ... | |
72 | 72 |
fi |
73 | 73 |
# Delete states through old gateway if it's not the same |
74 | 74 |
if [ -n "${old_routers}" ]; then |
75 |
OLD_ROUTER=$old_routers
|
|
75 |
OLD_ROUTER = $old_routers
|
|
76 | 76 |
fi |
77 | 77 |
if [ -z "${OLD_ROUTER}" ] && [ -f /tmp/${interface}_router ]; then |
78 |
OLD_ROUTER=`cat /tmp/${interface}_router`
|
|
78 |
OLD_ROUTER = `cat /tmp/${interface}_router`
|
|
79 | 79 |
fi |
80 | 80 |
if [ -n "${OLD_ROUTER}" ]; then |
81 | 81 |
$LOGGER "Comparing Routers: Old: ${OLD_ROUTER} New: ${new_routers}" |
Formats disponibles : Unified diff
Revert "Fix sh syntax"
This reverts commit cd49f9cd5d21a6592ba690cd315f19266092bee5.