1 #!/bin/ksh
2
3 effective_uid=$(id -u)
4 if [[ $effective_uid -ne 0 ]]
5 then
6 echo "Run as root! (use doas)"
7 exit 1
8 fi
9
10 cp /home/dave/bedtime .
11 cp /home/dave/no_bedtime.txt .
12 cp /home/dave/.profile ./dot_profile
13 cp /etc/sysctl.conf .
14 cp /etc/dhcpd.conf .
15 cp /etc/pf.conf .
16 cp /etc/rc.conf.local .
17 cp /etc/hostname.* .
18 cp /var/unbound/etc/unbound.conf .
19
20 crontab -l | grep bedtime > crontab.txt
21
22 chown dave *
23 chmod a+r *