From 49700fc70dcc22442ca47ec89db23fc980b8569d Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Fri, 28 Feb 2014 13:39:52 +0100
Subject: [PATCH] gluon-core: add sysconfig_isset function

---
 package/gluon-core/files/lib/gluon/functions/sysconfig.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/gluon-core/files/lib/gluon/functions/sysconfig.sh b/package/gluon-core/files/lib/gluon/functions/sysconfig.sh
index 044cbf51b..67aa10613 100644
--- a/package/gluon-core/files/lib/gluon/functions/sysconfig.sh
+++ b/package/gluon-core/files/lib/gluon/functions/sysconfig.sh
@@ -5,6 +5,10 @@ sysconfig() {
 	cat "$SYSCONFIGDIR/$1" 2>/dev/null
 }
 
+sysconfig_isset() {
+	test -e "$SYSCONFIGDIR/$1"
+}
+
 sysconfig_set() {
 	echo -n "$2" > "$SYSCONFIGDIR/$1"
 }
-- 
GitLab