Created
October 15, 2019 19:31
-
-
Save joedavis/f39ec79b9a1d3f3c2df26b8f982d354e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: sysupgrade.sh | |
=================================================================== | |
RCS file: /cvs/src/usr.sbin/sysupgrade/sysupgrade.sh,v | |
retrieving revision 1.26 | |
diff -u -p -r1.26 sysupgrade.sh | |
--- sysupgrade.sh 14 Oct 2019 06:58:53 -0000 1.26 | |
+++ sysupgrade.sh 15 Oct 2019 19:30:14 -0000 | |
@@ -25,7 +25,7 @@ umask 0022 | |
export PATH=/usr/bin:/bin:/usr/sbin:/sbin | |
ARCH=$(uname -m) | |
-SETSDIR=/home/_sysupgrade | |
+: ${SETSDIR:=/home/_sysupgrade} | |
ug_err() | |
{ | |
@@ -188,7 +188,7 @@ ${KEEP} && > keep | |
cat <<__EOT >/auto_upgrade.conf | |
Location of sets = disk | |
-Pathname to the sets = /home/_sysupgrade/ | |
+Pathname to the sets = ${SETSDIR} | |
Set name(s) = done | |
Directory does not contain SHA256.sig. Continue without verification = yes | |
__EOT | |
@@ -196,7 +196,7 @@ __EOT | |
if ! ${KEEP}; then | |
CLEAN=$(echo SHA256 ${SETS} | sed -e 's/ /,/g') | |
cat <<__EOT > /etc/rc.firsttime | |
-rm -f /home/_sysupgrade/{${CLEAN}} | |
+rm -f /home/${SETSDIR}/{${CLEAN}} | |
__EOT | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment