Commit ffd4336d authored by Natanael Copa's avatar Natanael Copa

libalpine: add yesno function

parent 2e2c8e52
......@@ -71,6 +71,14 @@ cfg_add() {
[ -z "$NOCOMMIT" ] && lbu_add "$@"
}
# return true if given value is 1, Y, Yes, yes YES etc
yesno() {
case $1 in
[Yy]|[Yy][Ee][Ss]|1|[Tt][Rr][Uu][Ee]) return 0;;
esac
return 1
}
# Detect if we are running Xen
is_xen() {
test -d /proc/xen
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment