Subversion Repositories configs

Rev

Rev 42 | Rev 58 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 42 Rev 45
Line 105... Line 105...
105
# may have been changed in the config file since the device was
105
# may have been changed in the config file since the device was
106
# brought up.  Flush all addresses associated with this
106
# brought up.  Flush all addresses associated with this
107
# instance instead.
107
# instance instead.
108
if [ -d "/sys/class/net/${REALDEVICE}" ]; then
108
if [ -d "/sys/class/net/${REALDEVICE}" ]; then
109
        LABEL=
109
        LABEL=
110
	if [ "${REALDEVICE}" = "${DEVICE}" ]; then
110
	if [ "${REALDEVICE}" != "${DEVICE}" ]; then
111
               LABEL="label ${DEVICE}"
111
               LABEL="label ${DEVICE}"
112
        fi
112
        fi
113
	if [ "${REALDEVICE}" = "lo" ]; then
113
	if [ "${REALDEVICE}" = "lo" ]; then
114
		ip addr flush dev ${REALDEVICE} ${LABEL} scope host 2>/dev/null
114
		ip addr flush dev ${REALDEVICE} ${LABEL} scope host 2>/dev/null
115
	else
115
	else