2019-01-19 13:34:07 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ -d /containers/onboot/004-admin-ip-setup ]; then
|
2019-12-16 12:05:42 +00:00
|
|
|
LOWER=/containers/onboot/004-admin-ip-setup/lower
|
2020-01-17 02:13:18 +00:00
|
|
|
elif [ -d /containers/onboot/004-frontal-ip-setup ]; then
|
|
|
|
LOWER=/containers/onboot/004-frontal-ip-setup/lower
|
2019-01-19 13:34:07 +00:00
|
|
|
else
|
|
|
|
nsenter -t 1 -a "$0" $@
|
|
|
|
exit $?
|
|
|
|
fi
|
|
|
|
|
|
|
|
mount -t tmpfs none $LOWER/run
|
|
|
|
|
|
|
|
chroot $LOWER iptables $@
|
|
|
|
EXIT=$?
|
|
|
|
|
|
|
|
umount $LOWER/run
|
|
|
|
|
|
|
|
exit ${EXIT}
|