aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-02-01 18:57:45 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-02-01 18:57:45 -0200
commitb809b373c0d4bc06e0c54e570eeec89a5c95de38 (patch)
treea0e97a3dde59530651e19c8286ebf6157564bd0a
parentec6d6613f73d02b4cccd9f5da6c0ca31e76b0070 (diff)
downloadpuppet-nodo-b809b373c0d4bc06e0c54e570eeec89a5c95de38.tar.gz
puppet-nodo-b809b373c0d4bc06e0c54e570eeec89a5c95de38.tar.bz2
Add a clear keyring command at rc.local
-rw-r--r--files/etc/rc.local5
1 files changed, 5 insertions, 0 deletions
diff --git a/files/etc/rc.local b/files/etc/rc.local
index 572eb90..4b8a41e 100644
--- a/files/etc/rc.local
+++ b/files/etc/rc.local
@@ -11,6 +11,11 @@
#
# By default this script does nothing.
+# Clear keyring
+if [ -x "/bin/keyctl" ]; then
+ /bin/keyctl clear @u
+fi
+
# Force the hostname
/bin/hostname `cat /etc/hostname`