Skip to content

Commit 3ad3182

Browse files
committed
Add delayed execution to netplan preup.
1 parent 83208c5 commit 3ad3182

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

bin/v-stop-firewall

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ else
7070
echo '#!/bin/bash' > $preup
7171
echo '' >> $preup
7272
echo 'if [ "$IFACE" == "'$(/bin/ip token | awk -F 'dev ' '{print $2}')'" ]; then' >> $preup
73+
echo ' sleep 3' >> $preup
7374
echo ' /sbin/iptables-restore < /etc/iptables.rules' >> $preup
7475
echo 'fi' >> $preup
7576
echo "exit 0" >> $preup

bin/v-update-firewall

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ else
171171
echo '#!/bin/bash' > $preup
172172
echo '' >> $preup
173173
echo 'if [ "$IFACE" == "'$(/bin/ip token | awk -F 'dev ' '{print $2}')'" ]; then' >> $preup
174+
echo ' sleep 3' >> $preup
174175
echo ' /sbin/iptables-restore < /etc/iptables.rules' >> $preup
175176
echo 'fi' >> $preup
176177
echo "exit 0" >> $preup

0 commit comments

Comments
 (0)