Skip to content

Instantly share code, notes, and snippets.

View nbari's full-sized avatar
🪴

nbari

🪴
View GitHub Profile
@nbari
nbari / update.sh
Created August 18, 2023 13:07
update freebsd
#!/bin/sh
FREEBSD_VERSION=13
NUMBER_OF_CORES=`sysctl -n hw.ncpu`
ZPOOL="zroot"
START=$(date +%s)
if [ `sysctl -n kern.securelevel` -gt 0 ]; then
sysrc kern_securelevel_enable="NO"
echo "need to reboot with securelevel 0"
exit
INFO: analyzing "profile.servers"
INFO: "servers": scanned 1 of 1 pages, containing 1 live rows and 9 dead rows; 1 rows in sample, 1 estimated total rows
INFO: analyzing "profile.samples"
INFO: "samples": scanned 1 of 1 pages, containing 8 live rows and 33 dead rows; 8 rows in sample, 8 estimated total rows
INFO: analyzing "profile.baselines"
INFO: "baselines": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows
INFO: analyzing "profile.bl_samples"
INFO: "bl_samples": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows
INFO: analyzing "profile.sample_stat_cluster"
INFO: "sample_stat_cluster": scanned 1 of 1 pages, containing 8 live rows and 33 dead rows; 8 rows in sample, 8 estimated total rows