From f79ba32712f88fcc6182b5820d95f7cccd4fdbae Mon Sep 17 00:00:00 2001 From: Kai Hendry Date: Sat, 14 Apr 2012 10:18:52 +0000 Subject: [PATCH] only run when there is id set --- etc/webc/updates.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/webc/updates.sh b/etc/webc/updates.sh index aace9207a3..72f187c7ce 100755 --- a/etc/webc/updates.sh +++ b/etc/webc/updates.sh @@ -46,9 +46,12 @@ update_keys() { while has_network do - ! cmdline | grep -qs noupdates && { + if test -s /etc/webc/id && source /etc/webc/webc.conf + then + ! cmdline_has noupdates && { update_keys updates } + fi sleep $updates_interval done