summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index fe98154..9b0fdbc 100755
--- a/etc/rc
+++ b/etc/rc
@@ -328,6 +328,13 @@ fi
echo "done."
+# 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
+ cp /etc/gettytab.bak /etc/gettytab
+fi
+
# Recreate capabilities DB
cap_mkdb /etc/login.conf
OpenPOWER on IntegriCloud