26 lines
456 B
Bash
Executable File
26 lines
456 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [[ "${UID}" != "0" ]] ; then echo "UID != 0" ; exit ; fi
|
|
|
|
printexec() {
|
|
|
|
printf "\e[91;1m * ${*}\e[0m\n"
|
|
"${@}"
|
|
|
|
}
|
|
|
|
printexec freebsd-update fetch install
|
|
printexec pkg update
|
|
printexec pkg upgrade
|
|
printexec pkg autoremove
|
|
printexec pkg check -d -s -a
|
|
printexec pkg audit -F -r
|
|
printexec pkg clean
|
|
printexec portsnap fetch update
|
|
printexec portmaster --clean-distfiles
|
|
printexec pkg stats
|
|
|
|
printf "\e[91;1m * Done\e[0m\n"
|
|
|
|
exit 0
|