# 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
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
if[[$( status shill_respawn | grep running )]];then
# shill_respawn job does not allow to pass arguments to shill
# shill_respawn job does not allow to pass arguments to shill
stop shill_respawn
stop shill_respawn
...
@@ -95,22 +105,18 @@ if [ "$confirm" != "y" -a "$confirm" != "Y" ] ; then
...
@@ -95,22 +105,18 @@ if [ "$confirm" != "y" -a "$confirm" != "Y" ] ; then