Ignore:
Timestamp:
2010-05-17T22:05:32+02:00 (7 years ago)
Author:
jow
Message:

[packages] ucarp: fix hardcoded paths to binaries (#7345)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/ucarp/files/ucarp.init

    r20017 r21496  
    33START=50 
    44CONF=/etc/ucarp.conf 
     5IP=$(which ip) 
     6UCARP=$(which ucarp) 
     7ARPING=$(which arping) 
    58 
    69start() { 
     
    1215#!/bin/sh 
    1316 
    14 /bin/ip addr add ${VIP}/${VMASK} dev ${IF} 
     17$IP addr add ${VIP}/${VMASK} dev ${IF} 
    1518 
    1619EOF 
     
    1821        do 
    1922        cat >> /var/run/ucarp-vip-up <<EOF 
    20 /usr/bin/arping -c 2 -I ${IF} -s ${VIP} ${ip} 
     23$ARPING -c 2 -I ${IF} -s ${VIP} ${ip} 
    2124EOF 
    2225        done 
     
    2629#!/bin/sh 
    2730 
    28 /bin/ip addr del ${VIP}/${VMASK} dev ${IF} 
     31$IP addr del ${VIP}/${VMASK} dev ${IF} 
    2932 
    3033EOF 
    3134        chmod a+x /var/run/ucarp-vip-down 
    3235 
    33         /usr/sbin/ucarp --interface=${IF} --srcip=${MYIP} --vhid=1 --pass=${PASSWORD} \ 
     36        $UCARP --interface=${IF} --srcip=${MYIP} --vhid=1 --pass=${PASSWORD} \ 
    3437                        --addr=${VIP} --nomcast $daemon \ 
    3538                        --upscript=/var/run/ucarp-vip-up --downscript=/var/run/ucarp-vip-down 
Note: See TracChangeset for help on using the changeset viewer.