#%% begin initialize 

hosts_config() {
  mv etc/hosts.$1.new /tmp
  if [ -f etc/hosts.$1 ] ; then
    mv /tmp/hosts.$1.new etc/hosts.$1.dist
  else
    mv /tmp/hosts.$1.new etc/hosts.$1
  fi
}

for i in allow deny ; do hosts_config $i ; done
#%% end
