${!foo} doesn't work in ash, switch to printenv

This commit is contained in:
Daniel Barlow 2023-03-07 19:05:58 +00:00
parent 4596bc3e88
commit f9f9720ba7

View file

@ -20,7 +20,7 @@ let
ip address replace $ip/$mask dev $interface
(in_outputs ${name}
for i in lease mask ip router siaddr dns serverid subnet opt53 interface ; do
echo ''${!i} > $i
printenv $i > $i
done)
}
case $action in