freeradius3: fix hostname invocation in radtest 13300/head
authorAlexey Dobrovolsky <dobrovolskiy.alexey@gmail.com>
Fri, 4 Sep 2020 22:31:28 +0000 (01:31 +0300)
committerAlexey Dobrovolsky <dobrovolskiy.alexey@gmail.com>
Fri, 4 Sep 2020 22:31:28 +0000 (01:31 +0300)
commit8b2792adc904045ca58ad077496f19ef634dc960
treee2dd04c51fc7d96d9ea9745501dec69df16d6dd8
parent6480acde4b08c46dd9d270a46005fe6f24e9a0b2
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: 004-get-hostname-from-proc-in-radtest.patch

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