Getty still freaking out even with sanity test in /etc/rc
-
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.? -
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.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.