#!/bin/ksh

effective_uid=$(id -u)
if [[ $effective_uid -ne 0 ]]
then
	echo "Run as root! (use doas)"
	exit 1
fi

cp /home/dave/bedtime .
cp /home/dave/no_bedtime.txt .
cp /home/dave/.profile ./dot_profile
cp /etc/sysctl.conf .
cp /etc/dhcpd.conf .
cp /etc/pf.conf .
cp /etc/rc.conf.local .
cp /etc/hostname.* .
cp /var/unbound/etc/unbound.conf .

crontab -l | grep bedtime > crontab.txt

chown dave *
chmod a+r *
