#!/bin/ash
flag="/run/network/primary-dhcp.flag"readonly flag
w=0# Wait a maximum of 10 seconds for the flag filewhile! [-e"$flag"] && ["$w"-lt10];dolet w++sleep1done# Then touch it anyways, this will prevent the DHCP# trigger script from changing the hostname later on
mkdir -p/run/network
touch"$flag"exit0