Ignore:
Timestamp:
2010-04-25T23:13:31+02:00 (6 years ago)
Author:
axel
Message:

[packages] /net/bmxd: update to revision 1636, adapt Makefile, do not overwrite /etc/config/bmxd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/bmxd/files/etc/init.d/bmxd

    r11216 r21160  
    44uci_load bmxd 
    55start () { 
    6         interface=$(uci get bmxd.general.interface) 
     6        interface="$(uci get bmxd.general.interface)" 
    77        if [ "$interface" = "" ]; then 
    88                echo $1 Error, you must specify at least a network interface 
     
    1515        routing_class=$(uci get bmxd.general.routing_class) 
    1616        visualisation_srv=$(uci get bmxd.general.visualisation_srv) 
    17         policy_routing_script=$(uci get bmxd.general.policy_routing_script) 
     17        misc="$(uci get bmxd.general.misc)" 
    1818        bmx_args="" 
    1919 
     
    4242        fi 
    4343         
    44         if [ $policy_routing_script ]; then 
    45                 bmx_args=${bmx_args}'--policy-routing-script '$policy_routing_script' ' 
    46         fi 
    4744 
    48         bmx_args=${bmx_args}$interface 
     45        bmx_args="$misc ${bmx_args} $interface" 
    4946        bmxd $bmx_args >/dev/null 2>&1 
    5047} 
    5148 
    52 restart () { 
    53         $0 stop 
    54         sleep 3 
    55         $0 start 
    56 } 
    57          
    5849stop () { 
    5950        killall bmxd 
Note: See TracChangeset for help on using the changeset viewer.