mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 17:04:35 +04:00
get rid of library version numbers in luci olsrd code
Signed-off-by: Philipp Borgers <borgers@mi.fu-berlin.de>
This commit is contained in:
@@ -10,7 +10,7 @@ hostsfile_getname()
|
||||
|
||||
while value="$( uci -q get $config.@LoadPlugin[$i].library )"; do {
|
||||
case "$value" in
|
||||
'olsrd_nameservice.so.'*)
|
||||
'olsrd_nameservice'*)
|
||||
file="$( uci -q get $config.@LoadPlugin[$i].hosts_file )"
|
||||
break
|
||||
;;
|
||||
|
||||
@@ -11,7 +11,7 @@ if fs.access("/var/run/olsrd.pid") or fs.access("/var/run/olsrd4.pid") then
|
||||
|
||||
x:foreach("olsrd", "LoadPlugin",
|
||||
function(s)
|
||||
if s.library == "olsrd_watchdog.so.0.1" then
|
||||
if s.library == "olsrd_watchdog" then
|
||||
intv = tonumber(s.interval)
|
||||
stamp = s.file
|
||||
end
|
||||
|
||||
@@ -8,7 +8,7 @@ MAPSERVER="$(uci -q get freifunk-mapupdate.mapupdate.mapserver)"
|
||||
[ -z "$MAPSERVER" ] && logger -t "freifunk-mapupdate:" "No mapserver configured" && exit 1
|
||||
|
||||
#check if nameservice plugin is installed and enabled, else exit
|
||||
nslib=`uci show olsrd |grep olsrd_nameservice.so |awk {' FS="."; print $1"."$2 '}`
|
||||
nslib=`uci show olsrd |grep olsrd_nameservice |awk {' FS="."; print $1"."$2 '}`
|
||||
if [ -n "$nslib" ]; then
|
||||
LATLONFILE="$(uci -q get $nslib.latlon_file)"
|
||||
if [ -z "$LATLONFILE" ]; then
|
||||
|
||||
@@ -73,7 +73,7 @@ setup_nameservice() {
|
||||
|
||||
uci batch <<- EOF
|
||||
set $cfg.olsrd_nameservice=LoadPlugin
|
||||
set $cfg.olsrd_nameservice.library="olsrd_nameservice.so.0.4"
|
||||
set $cfg.olsrd_nameservice.library="olsrd_nameservice"
|
||||
set $cfg.olsrd_nameservice.latlon_file="$llfile"
|
||||
set $cfg.olsrd_nameservice.hosts_file="$hosts"
|
||||
set $cfg.olsrd_nameservice.sighup_pid_file="/var/run/dnsmasq.pid"
|
||||
@@ -91,7 +91,7 @@ setup_dyngw_plain() {
|
||||
if [ "$general_sharenet" == 1 ]; then
|
||||
uci set $cfg.dyngw_plain=LoadPlugin
|
||||
uci set $cfg.dyngw_plain.ignore=0
|
||||
uci set $cfg.dyngw_plain.library="olsrd_dyn_gw_plain.so.0.4"
|
||||
uci set $cfg.dyngw_plain.library="olsrd_dyn_gw_plain"
|
||||
uci_commitverbose "Setup olsrd_dyngw_plain plugin" $cfg
|
||||
fi
|
||||
|
||||
@@ -106,7 +106,7 @@ setup_watchdog() {
|
||||
|
||||
uci batch <<- EOF
|
||||
set $cfg.olsrd_watchdog=LoadPlugin
|
||||
set $cfg.olsrd_watchdog.library="olsrd_watchdog.so.0.1"
|
||||
set $cfg.olsrd_watchdog.library="olsrd_watchdog"
|
||||
set $cfg.olsrd_watchdog.file="$watchdogfile"
|
||||
set $cfg.olsrd_watchdog.interval=30
|
||||
EOF
|
||||
@@ -118,7 +118,7 @@ setup_jsoninfo() {
|
||||
proto="$1"
|
||||
uci batch <<- EOF
|
||||
set $cfg.olsrd_jsoninfo=LoadPlugin
|
||||
set $cfg.olsrd_jsoninfo.library="olsrd_jsoninfo.so.1.1"
|
||||
set $cfg.olsrd_jsoninfo.library="olsrd_jsoninfo"
|
||||
EOF
|
||||
if [ "$proto" = "6" ]; then
|
||||
uci set $cfg.olsrd_jsoninfo.ipv6only='1'
|
||||
@@ -130,7 +130,7 @@ setup_txtinfo() {
|
||||
proto="$1"
|
||||
uci batch <<- EOF
|
||||
set $cfg.olsrd_txtinfo=LoadPlugin
|
||||
set $cfg.olsrd_txtinfo.library="olsrd_txtinfo.so.1.1"
|
||||
set $cfg.olsrd_txtinfo.library="olsrd_txtinfo"
|
||||
EOF
|
||||
if [ "$proto" = "6" ]; then
|
||||
uci set $cfg.olsrd_txtinfo.ipv6only='1'
|
||||
|
||||
Reference in New Issue
Block a user