gluon-core: add sysconfig_isset function
This commit is contained in:
parent
bbd8ee6772
commit
49700fc70d
@ -5,6 +5,10 @@ sysconfig() {
|
||||
cat "$SYSCONFIGDIR/$1" 2>/dev/null
|
||||
}
|
||||
|
||||
sysconfig_isset() {
|
||||
test -e "$SYSCONFIGDIR/$1"
|
||||
}
|
||||
|
||||
sysconfig_set() {
|
||||
echo -n "$2" > "$SYSCONFIGDIR/$1"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user