Canonical radtest start results in an error: $ radtest bob hello localhost 0 testing123 /usr/bin/radtest: line 1: hostname: not found (0) Error parsing "stdin": Failed to get value hostname command is not present in OpenWrt. Instead, hostname can be obtained from file /proc/sys/kernel/hostname. added: 004-get-hostname-from-proc-in-radtest.patch Signed-off-by: Alexey Dobrovolsky <dobrovolskiy.alexey@gmail.com>
12 lines
171 B
Diff
12 lines
171 B
Diff
--- a/src/main/radtest.in
|
|
+++ b/src/main/radtest.in
|
|
@@ -112,7 +112,7 @@ if [ "$7" ]
|
|
then
|
|
nas=$7
|
|
else
|
|
- nas=`hostname`
|
|
+ nas=$(cat /proc/sys/kernel/hostname)
|
|
fi
|
|
|
|
(
|
|
|