Combine poky (Yocto scarthgap), meta-openembedded (scarthgap), and meta-openwrt into a single repository. Components: - poky/ Yocto core framework (BitBake + OE-Core) - meta-openembedded/ Community layers (meta-oe, meta-python, meta-networking) - meta-openwrt/ OpenWrt customization layer - setup-env.sh One-click build environment setup - README.md Project documentation
22 lines
529 B
Bash
22 lines
529 B
Bash
#!/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
|