Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Redundant lines in /root/.profile

    2.1 Snapshot Feedback and Problems - RETIRED
    2
    3
    1147
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dhatz last edited by

      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.initial

      FreeBSD 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

      1 Reply Last reply Reply Quote 0
      • D
        dhatz last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • E
          Efonnes last edited by

          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)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post