Ticket #80: openrc-iproute2.diff

File openrc-iproute2.diff, 0 bytes (added by Constantin Baranov <const@const.mimas.ru>, 2 years ago)

Fix typos in tunnel handling code

  • net/iproute2.sh

    old new iproute2_pre_start() 
    198198                metric=1000 
    199199 
    200200                ebegin "Creating tunnel ${IFVAR}" 
    201                 ip tunnel add ${tunnel} name dev "${IFACE}" 
     201                ip tunnel add ${tunnel} name "${IFACE}" 
    202202                eend $? || return 1 
    203203                _up      
    204204        fi 
    iproute2_post_stop() 
    234234        if [ "${IFACE}" != "sit0" ]; then 
    235235                if [ -n "$(ip tunnel show "${IFACE}" 2>/dev/null)" ]; then 
    236236                        ebegin "Destroying tunnel ${IFACE}" 
    237                         ip tunnel del dev "${IFACE}" 
     237                        ip tunnel del "${IFACE}" 
    238238                        eend $? 
    239239                fi 
    240240        fi