gluon-core: add sysconfig_isset function

This commit is contained in:
Matthias Schiffer 2014-02-28 13:39:52 +01:00
parent bbd8ee6772
commit 49700fc70d

View File

@ -5,6 +5,10 @@ sysconfig() {
cat "$SYSCONFIGDIR/$1" 2>/dev/null
}
sysconfig_isset() {
test -e "$SYSCONFIGDIR/$1"
}
sysconfig_set() {
echo -n "$2" > "$SYSCONFIGDIR/$1"
}