Page MenuHomeFreeBSD
Paste P430

(An Untitled Masterwork)
ActivePublic

Authored by swills on Sep 30 2020, 4:14 PM.
Tags
None
Referenced Files
F9399324: raw-paste-data.txt
Sep 30 2020, 4:22 PM
F9399116: raw-paste-data.txt
Sep 30 2020, 4:14 PM
Subscribers
None
#!/bin/sh
cat << EOF > /tmp/excludes.txt
./etc/resolv.conf
./etc/rc.conf
./etc/dhclient.conf
./etc/group
./etc/master.passwd
./etc/pwd.db
./etc/spwd.db
./etc/passwd
EOF
cd /tmp
if [ -f kernel.txz ]; then
rm kernel.txz
fi
if [ -f base.txz ]; then
rm base.txz
fi
fetch https://download.freebsd.org/ftp/snapshots/amd64/amd64/13.0-CURRENT/kernel.txz
fetch https://download.freebsd.org/ftp/snapshots/amd64/amd64/13.0-CURRENT/base.txz
chflags -R noschg /
cd /
tar -xzf /tmp/kernel.txz
tar -xz --exclude-from /tmp/excludes.txt -f /tmp/base.txz
sync
shutdown -r now

Event Timeline

swills created this object in space S1 Global.