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

    Getty still freaking out even with sanity test in /etc/rc

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 1.0k Views
    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.
    • M
      mostlyharmless
      last edited by

      There are a few other posts regarding getty spamming the log and generally not behaving right, the solutions there work, but:
      My gettytab still gets munged up, but is still intact enough to pass the sanity test in /etc/rc

      # Ensure gettytab is of a sane size
      if [ `/bin/ls -la /etc/gettytab | /usr/bin/awk '{ print $5'}` -lt 512 ]; then
      	echo ">>> Restoring /etc/gettytab due to unusal size"
      	echo ">>> Restoring /etc/gettytab due to unusal size" | /usr/bin/logger
      	/bin/cp /etc/gettytab.bak /etc/gettytab
      fi
      
      

      I have a good copy of gettytab in /etc/gettytab.bak but it just doesn't get copied over. Most of the time i pick up on the error and I just simply copy it over myself.
      Is there anything in the works to fix or find out what's going on here, or how can i modify the sanity test to be more sensitive to the gettytab being changed.?

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Hard to say what's messed up exactly that lets it pass the test.

        Step 1 would be to get us a copy of the "bad" file.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.