fix: check if user is in group "dialout" before starting flash or build+flash routine

This commit is contained in:
th33xitus
2021-12-24 16:17:07 +01:00
parent 4e3a701db4
commit a632fae8f6
2 changed files with 38 additions and 2 deletions

View File

@@ -41,12 +41,14 @@ advanced_menu(){
3)
do_action "build_fw" "advanced_ui";;
4)
clear && print_header
check_usergroup_dialout
do_action "select_flash_method" "advanced_ui";;
5)
clear && print_header
check_usergroup_dialout
status_msg "Please wait..."
build_fw
select_flash_method
build_fw && select_flash_method
print_msg && clear_msg
advanced_ui;;
6)