Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Paste
P430
(An Untitled Masterwork)
Active
Public
Actions
Authored by
swills
on Sep 30 2020, 4:14 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
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 paste.
Sep 30 2020, 4:14 PM
2020-09-30 16:14:11 (UTC+0)
swills
created this object in space
S1 Global
.
swills
edited the content of this paste.
(Show Details)
Sep 30 2020, 4:22 PM
2020-09-30 16:22:31 (UTC+0)
Log In to Comment