mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Patch from Ron Lockard that fixed restore_chflags due to a STDOUT redirection issue
This commit is contained in:
parent
fe126e7773
commit
d2307ffb56
@ -59,7 +59,7 @@ output_env_to_log() {
|
||||
backup_chflags() {
|
||||
TOPROCESS="bin lib libexec sbin usr"
|
||||
for files in $TOPROCESS; do
|
||||
/usr/sbin/mtree -Pcp /${files} | bzip2 -9 > /tmp/chflags.dist.${files}.bz2 >> /conf/upgrade_log.txt 2>&1
|
||||
/usr/sbin/mtree -Pcp /${files} | bzip2 -9 > /tmp/chflags.dist.${files}.bz2 2>> /conf/upgrade_log.txt
|
||||
done
|
||||
}
|
||||
|
||||
@ -160,7 +160,7 @@ pfSenseNanoBSDupgrade)
|
||||
echo "" >> /conf/upgrade_log.txt
|
||||
|
||||
echo "Installing $IMG." >> /conf/upgrade_log.txt 2>&1
|
||||
echo "Installing $IMG." >> /conf/upgrade_log.txt
|
||||
echo "Installing $IMG." | wall
|
||||
|
||||
# resolve glabel label that we booted from
|
||||
BOOT_DEVICE=`/sbin/mount | /usr/bin/grep pfsense | /usr/bin/cut -d'/' -f4 | /usr/bin/cut -d' ' -f1`
|
||||
@ -385,7 +385,7 @@ pfSenseupgrade)
|
||||
# wait 1 seconds before beginning
|
||||
sleep 1
|
||||
|
||||
# Log that we are really doing a NanoBSD upgrade
|
||||
# Log that we are really doing a pfSense upgrade
|
||||
echo "" >> /conf/upgrade_log.txt
|
||||
echo "pfSenseupgrade upgrade starting" >> /conf/upgrade_log.txt
|
||||
echo "" >> /conf/upgrade_log.txt
|
||||
|
||||
Loading…
Reference in New Issue
Block a user