I think it's better to put this into /etc/network/if-up.d/iptables. Make the script executable:

Code:

chmod 755 /etc/network/if-up.d/iptables

It should then be executed whenever your network comes up.

Click to expand...

Tks for your advice.

Can I just put follow on /etc/network/if-up.d/iptables?

Code:

#! /bin/sh
exec /etc/init.d/rc.local

Then "chmod 755 /etc/network/if-up.d/iptables"

Previously I made a mistake. "Stopping domain name service bind " did not hang there permanently. It hung there for sometimes. After [Fail] (in red colour) popup shutdown procedure continued with PC turned off finally.