Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Commit

Permalink
Update FreeBSD instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
herrbischoff committed Mar 3, 2021
1 parent 06b5d54 commit 7c24ca0
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .config/fish/functions/update.fish
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,44 @@

function __freebsd_pkg
printf "\n====[ Upgrade Software ] ===================================\n"; and \
sudo pkg update; and \
sudo pkg upgrade
doas pkg update && \
doas pkg upgrade
end

function __freebsd_portmaster
printf "\n====[ Upgrade Software ] ===================================\n"; and \
sudo portmaster -aBdt --packages-build && \
sudo portmaster -y --clean-distfiles
doas portmaster -aBdt --packages-build && \
doas portmaster -y --clean-distfiles
end

function __freebsd_synth
printf "\n====[ Compile and Upgrade Software ]========================\n"; and \
sudo synth upgrade-system
doas synth upgrade-system
end

function __freebsd_portsnap
printf "\n====[ Update Ports tree ]===================================\n"; and \
sudo portsnap fetch update
if test -d /usr/ports
printf "\n====[ Update Ports tree ]===================================\n"; and \
doas portsnap fetch update
end
end

function __freebsd_ezjail_ports
set cmd (which ezjail-admin)
if test $status -eq 0
printf "\n====[ Update ezjail Ports tree ]============================\n"; and \
sudo ezjail-admin update -P
doas ezjail-admin update -P
end
end

function __freebsd_freebsd-update
printf "====[ System Software Update ]==============================\n"; and \
sudo freebsd-update fetch; and \
sudo freebsd-update install
doas freebsd-update fetch install
end

function __freebsd_source
printf "====[ Update System Sources ]===============================\n"; and \
sudo svnlite update /usr/src
doas svnlite update /usr/src
end

function __update_node_packages
Expand Down

0 comments on commit 7c24ca0

Please sign in to comment.