Skip to content
Snippets Groups Projects
Commit 49700fc7 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-core: add sysconfig_isset function

parent bbd8ee67
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,10 @@ sysconfig() { ...@@ -5,6 +5,10 @@ sysconfig() {
cat "$SYSCONFIGDIR/$1" 2>/dev/null cat "$SYSCONFIGDIR/$1" 2>/dev/null
} }
sysconfig_isset() {
test -e "$SYSCONFIGDIR/$1"
}
sysconfig_set() { sysconfig_set() {
echo -n "$2" > "$SYSCONFIGDIR/$1" echo -n "$2" > "$SYSCONFIGDIR/$1"
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment