# TODO: how to get environment variables used by shill upstart script/shill options
ip6tables -A INPUT -p udp --dport 326 -j ACCEPT
# setup shill network manager
# 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
# setup shill network manager
if["$confirm"!="y"-a"$confirm"!="Y"];then
if[[$( pgrep -a shill | grep${blacklist_option})]];then
if[[$( status shill_respawn | grep running )]];then
echo"shill was started with the right blacklist."
# shill_respawn job does not allow to pass arguments to shill
else
stop shill_respawn
read-p"The network manager shill was not started with the right blacklisted devices list. Restart it [Y/n]? " confirm
fi
if["$confirm"!="n"-a"$confirm"!="N"];then
if[[$( status shill | grep running )]];then
if[[$( status shill_respawn | grep running )]];then
stop shill
# shill_respawn job does not allow to pass arguments to shill