Redundant lines in /root/.profile
-
Just happened to notice that there are several identical lines at the end of /root/.profile :
cat /root/.profile
if [
env | grep SSH_TTY | wc -l
-gt 0 ] || [env | grep cons25 | wc -l
-gt 0 ]; then
/etc/rc.initial
exit
fi
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial
[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initialFreeBSD fw.localdomain 8.3-RELEASE-p2 FreeBSD 8.3-RELEASE-p2 #1: Tue Jun 12 06:28:57 EDT 2012 root@FreeBSD_8.3_pfSense_2.1.snaps.pfsense.org:/usr/obj./usr/pfSensesrc/src/sys/pfSense_SMP.8 i386
-
It seems to be related to the upgrade code. I just did an upgrade to latest snapshot and at the end of the procedure, there was one more identical line added at the end of the file.
-
Could be fixed, but it is probably very low priority, as only one of those will ever execute anyway when the condition is true. (though it will try the condition that many times if the condition is false)