mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 20:20:06 +09:00
Add function to check whether a board has an analogue jack
This commit is contained in:
parent
08400e3154
commit
5b11405bf8
@ -89,6 +89,14 @@ is_pulseaudio() {
|
|||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
has_analog() {
|
||||||
|
if [ $(get_leds) -eq -1 ] ; then
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
is_installed() {
|
is_installed() {
|
||||||
if [ "$(dpkg -l "$1" 2> /dev/null | tail -n 1 | cut -d ' ' -f 1)" != "ii" ]; then
|
if [ "$(dpkg -l "$1" 2> /dev/null | tail -n 1 | cut -d ' ' -f 1)" != "ii" ]; then
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user