mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-07-19 15:29:08 +02:00

It needs both freeradius and perl-module-data-dumper, so neither place would fulfill all dependencies. In general meta-perl looks like the more appropriate place. The location in meta-networking also had the problem that it was one directory too deep and therefore not included in BBFILES. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
529 B
529 B
#!/bin/sh
prepare testing config
CONF_USERS=readlink -f /etc/raddb/users
mv ${CONF_USERS} ${CONF_USERS}_orig
echo "testing Cleartext-Password := "testpassword"" > ${CONF_USERS}
cat ${CONF_USERS}_orig >> ${CONF_USERS}
restart radiusd server
systemctl restart radiusd || /etc/init.d/radiusd restart || { echo "FAIL: Start radiusd service." exit 1 }
run teests
perl test.pl
restore the config and restart
mv ${CONF_USERS}_orig ${CONF_USERS} systemctl restart radiusd || /etc/init.d/radiusd restart