Page MenuHomeFreeBSD

raw-paste-data.txt

Authored By
swills
Sep 30 2020, 4:22 PM
Size
568 B
Referenced Files
None
Subscribers
None

raw-paste-data.txt

#!/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

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2816684
Default Alt Text
raw-paste-data.txt (568 B)

Event Timeline