Revision 64183253
Added by Scott Ullrich over 14 years ago
etc/rc | ||
---|---|---|
328 | 328 |
|
329 | 329 |
echo "done." |
330 | 330 |
|
331 |
# Ensure gettytab is of a sane size |
|
332 |
if [ `/bin/ls -la /etc/gettytab | /usr/bin/awk '{ print $5'}` -lt 512 ]; then |
|
333 |
echo ">>> Restoring /etc/gettytab due to unusal size" |
|
334 |
echo ">>> Restoring /etc/gettytab due to unusal size" | /usr/bin/logger |
|
335 |
cp /etc/gettytab.bak /etc/gettytab |
|
336 |
fi |
|
337 |
|
|
331 | 338 |
# Recreate capabilities DB |
332 | 339 |
cap_mkdb /etc/login.conf |
333 | 340 |
|
Also available in: Unified diff
Ensure /etc/gettytab is of a sane size and restore from backup + log if it is not