fff-hoods: Replace hiddenapflag by check for real conditions
Instead of using the hiddenapflag file, we can just check whether the hood file copy used by the webserver is present. As a second condition, we check whether the w2configap is not configured yet. This fixes the following minor issue: Previously, if configurehood has run once, the hiddenapflag was set, but the configap not set up yet. If then a restart happens, the flag is gone (/tmp), but not recreated until a change in the hood file appears. Thus, no configap would be set up until that point. Since we check for a real condition now, this can't be happening. Signed-off-by:Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
Loading
Please register or sign in to comment