# TODO: how to get environment variables used by shill upstart script/shill options
# setup shill network manager
if[-r"${configdir}"/ip6tables.conf ];then
ip6tables-restore < "${configdir}"/ip6tables.conf
else
# accept ports needed for re6stnet
ip6tables -P FORWARD ACCEPT
ip6tables -A OUTPUT -p udp --dport 6696 -j ACCEPT
ip6tables -A OUTPUT -p udp --dport 326 -j ACCEPT
ip6tables -A INPUT -p udp --dport 6696 -j ACCEPT
ip6tables -A INPUT -p udp --dport 326 -j ACCEPT
# Accept ports needed for running any webrunner
ip6tables -A INPUT -p tcp --dport 9684 -j ACCEPT
ip6tables -A INPUT -p tcp --dport 50005 -j ACCEPT
fi
read-p"Was the network manager shill already started with the right blacklisted devices? (It should be the case if you run this script since you boot. Answering n will restart shill.) [y/N]? " confirm
if["$confirm"!="y"-a"$confirm"!="Y"];then
# setup shill network manager
if[[$( pgrep -a shill | grep${blacklist_option})]];then
echo"shill was started with the right blacklist."
else
read-p"The network manager shill was not started with the right blacklisted devices list. Restart it [Y/n]? " confirm
if["$confirm"!="n"-a"$confirm"!="N"];then
if[[$( status shill_respawn | grep running )]];then
# shill_respawn job does not allow to pass arguments to shill
stop shill_respawn
...
...
@@ -95,22 +105,18 @@ if [ "$confirm" != "y" -a "$confirm" != "Y" ] ; then