map-agent: map-dynamic-backhaul: create folder prior to touching ports file

This commit is contained in:
Jakob Olsson 2023-08-28 10:44:36 +02:00
parent 0ffe19196c
commit 83f4e57fe2

View file

@ -19,6 +19,7 @@ if [ -n "$(which dynbhd)" ]; then
pidof dynbhd >/dev/null && exit 0 # dynbhd is managing the links
if [ ! -f $conn_ports_file ]; then
mkdir -p /var/run/multiap
touch $conn_ports_file
if [ "$LINK" = "up" ]; then
touch $conn_ports_file