#!/bin/sh

#chattr -i /etc/rc.local
#cp -v ./rc.local /etc/rc.local
#chmod -v 0755 /etc/rc.local
#chown -v root:root /etc/rc.local
#chattr +i /etc/rc.local

chattr -i /etc/hosts.deny
cp -v ./hosts.deny /etc/hosts.deny
chmod -v 0644 /etc/hosts.deny
chown -v root:root /etc/hosts.deny
chattr +i /etc/hosts.deny

chattr -i /etc/hosts.allow
cp -v ./hosts.allow /etc/hosts.allow
chmod -v 0644 /etc/hosts.allow
chown -v root:root /etc/hosts.allow
chattr +i /etc/hosts.allow

chattr -i /etc/resolv.conf
cp -v ./resolv.conf /etc/resolv.conf
chmod -v 0644 /etc/resolv.conf
chown -v root:root /etc/resolv.conf
chattr +i /etc/resolv.conf