2019-01-19 13:34:07 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-03-24 11:57:04 +00:00
|
|
|
if [ -d /containers/onboot/006-synchro-ip-setup ]; then
|
|
|
|
LOWER=/containers/onboot/006-synchro-ip-setup/lower
|
|
|
|
elif [ -d /containers/onboot/006-nginx-ip-setup ]; then
|
|
|
|
LOWER=/containers/onboot/006-nginx-ip-setup/lower
|
2019-01-19 13:34:07 +00:00
|
|
|
else
|
2020-01-30 18:03:14 +00:00
|
|
|
nsenter -t 1 -m -u -i -p -- "$0" $@
|
2019-01-19 13:34:07 +00:00
|
|
|
exit $?
|
|
|
|
fi
|
|
|
|
|
|
|
|
mount -t tmpfs none $LOWER/run
|
|
|
|
|
|
|
|
chroot $LOWER iptables $@
|
|
|
|
EXIT=$?
|
|
|
|
|
|
|
|
umount $LOWER/run
|
|
|
|
|
|
|
|
exit ${EXIT}
|