all: Switch the --lang syntax to use argv instead
It was a bit awkward using `mgmt run lang --lang <input>` so instead, we now drop the --lang, and read the positional argv for the input. This also does the same for the --yaml frontend.
This commit is contained in:
@@ -52,7 +52,7 @@ sudo mkdir -p /etc/systemd/network
|
||||
sudo ip link add $IFACE type dummy || true
|
||||
|
||||
# run mgmt net res with $IFACE and $ADDR set as above
|
||||
sudo -A $TIMEOUT "$MGMT" run --converged-timeout=5 --tmp-prefix lang --lang ./net0.mcl &
|
||||
sudo -A $TIMEOUT "$MGMT" run --converged-timeout=5 --tmp-prefix lang ./net0.mcl &
|
||||
pid1=$!
|
||||
|
||||
# give the engine time to start up
|
||||
@@ -93,7 +93,7 @@ wait $pid1
|
||||
e1=$?
|
||||
|
||||
# run mgmt net res with $IFACE state => "down"
|
||||
sudo -A $TIMEOUT "$MGMT" run --converged-timeout=5 --tmp-prefix lang --lang ./net1.mcl &
|
||||
sudo -A $TIMEOUT "$MGMT" run --converged-timeout=5 --tmp-prefix lang ./net1.mcl &
|
||||
|
||||
# give the engine time to start up
|
||||
sleep 5
|
||||
|
||||
Reference in New Issue
Block a user