#!/bin/bash

useradd -m -s /bin/bash mythtv -G audio,video,optical,storage,users
echo 'setting mythtv password to "a" '
passwd mythtv <<EOF
a
a
EOF

echo 'setting root password to "a" '
passwd root <<EOF
a
a
EOF

#edit /home/mythtv/.xinitrc and uncomment exec fluxbox
cp -rvpf /.tweak/home/mythtv  /home/



chown -R mythtv.mythtv /home/mythtv/



cp -f /.tweak/hosts.allow /etc/hosts.allow
cp -f /.tweak/securetty /etc/securetty
cp -f /.tweak/rc.conf /etc/rc.conf
#cp -f rc.local /etc/rc.local
#cp -f locale.gen /etc/locale.gen

cp -f /.tweak/rc.shutdown /etc/rc.shutdown
cp -f /.tweak/menu.lst /boot/grub/menu.lst