mirror of
https://github.com/armbian/configng.git
synced 2026-01-06 10:37:41 -08:00
new file: lib/config/io.sh
ir toggle arbian-config netwokr/ir
This commit is contained in:
17
lib/config/io.sh
Normal file
17
lib/config/io.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
# @description Enable or Disable Infrared Remote Control.
|
||||
#
|
||||
# @example
|
||||
# io::set_ir_toggle enable
|
||||
# io::set_ir_toggle disable
|
||||
# echo $?
|
||||
# #Output
|
||||
# 0
|
||||
#
|
||||
# @exitcode 0 If successful.
|
||||
io::set_ir_toggle(){
|
||||
|
||||
[[ "$1" == "enable" ]] && sudo apt -y --no-install-recommends install lirc ;
|
||||
[[ "$1" == "disabe" ]] && sudo apt -y remove lirc ; sudo apt -y -qq autoremove ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user