projects
/
feed
/
routing.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2430426
)
olsrd: find_most_recent_plugin_libary() fix sorting
author
Bastian Bittorf
<bb@npl.de>
Fri, 24 Feb 2017 14:12:19 +0000
(15:12 +0100)
committer
Bastian Bittorf
<bb@npl.de>
Fri, 24 Feb 2017 14:12:19 +0000
(15:12 +0100)
olsrd/files/olsrd.init
patch
|
blob
|
history
diff --git
a/olsrd/files/olsrd.init
b/olsrd/files/olsrd.init
index 7f7aecc83e63b3a7d419450ba2ca4a6ffcd94395..8e562c1ff4e5ed756f3be26d966ca884e3ace360 100644
(file)
--- a/
olsrd/files/olsrd.init
+++ b/
olsrd/files/olsrd.init
@@
-473,16
+473,17
@@
olsrd_write_hna6() {
find_most_recent_plugin_libary()
{
local library="$1" # e.g. 'olsrd_dyn_gw' or 'olsrd_txtinfo.so.1.1'
find_most_recent_plugin_libary()
{
local library="$1" # e.g. 'olsrd_dyn_gw' or 'olsrd_txtinfo.so.1.1'
- local file unixtime
+ local file
file_fullpath
unixtime
for file in "/lib/$library"* "/usr/lib/$library"* "/usr/local/lib/$library"*; do {
[ -f "$file" ] && {
for file in "/lib/$library"* "/usr/lib/$library"* "/usr/local/lib/$library"*; do {
[ -f "$file" ] && {
+ file_fullpath="$file"
file="$( basename "$file" )"
# make sure that we do not select
# 'olsrd_dyn_gw_plain.so.0.4' if user wants
# 'olsrd_dyn_gw.so.0.5' -> compare part before 1st dot
[ "${library%%.*}" = "${file%%.*}" ] && {
file="$( basename "$file" )"
# make sure that we do not select
# 'olsrd_dyn_gw_plain.so.0.4' if user wants
# 'olsrd_dyn_gw.so.0.5' -> compare part before 1st dot
[ "${library%%.*}" = "${file%%.*}" ] && {
- unixtime="$( date +%s -r "$file" )"
+ unixtime="$( date +%s -r "$file
_fullpath
" )"
echo "$unixtime $file"
}
}
echo "$unixtime $file"
}
}