freeradius3: fix hostname invocation in radtest 13385/head
authorAlexey Dobrovolsky <dobrovolskiy.alexey@gmail.com>
Sun, 13 Sep 2020 22:36:30 +0000 (01:36 +0300)
committerAlexey Dobrovolsky <dobrovolskiy.alexey@gmail.com>
Sun, 13 Sep 2020 22:36:30 +0000 (01:36 +0300)
commit2d410422c5c02b4079c3a98dcdb996e938d1af74
tree2dd1236fa1ba846bfb26ef91265158b610b51ca6
parent066ac03921b73695a260965cf6e72ef0a3b85929
freeradius3: fix hostname invocation in radtest

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: 005-get-hostname-from-proc-in-radtest.patch

(backported from commit 8b2792a)
Signed-off-by: Alexey Dobrovolsky <dobrovolskiy.alexey@gmail.com>
net/freeradius3/Makefile
net/freeradius3/patches/005-get-hostname-from-proc-in-radtest.patch [new file with mode: 0644]