bugfix: Make sure we create the swconfig file even if it will end up empty.

If we don't create the file the system will have nothing to include later on and the script will run on every boot
This commit is contained in:
Conrad Lara - KG6JEI 2015-04-05 23:05:42 -07:00
parent 79902f0876
commit 3c07872f06
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ boot() {
if [ ! -f /etc/aredn_include/swconfig ]
then
mkdir -p /etc/aredn_include
touch /etc/aredn_include/swconfig
i=0
while true; do
uci -q get network.\@switch_vlan\[$i\] > /dev/null