Reinstate info on showing udev rules on permission errors

This commit is contained in:
stefanrueger
2026-08-01 19:54:51 +02:00
parent 223ebcb02c
commit 28870f45fc

View File

@@ -1702,16 +1702,9 @@ main_exit:
pmsg_info("\nUSB access errors detected; this could have many reasons; if it is\n"
"USB permission problems, avrdude is likely to work when run as root\n"
"but this is not good practice; instead you might want to\n");
#if 0 && !defined(WIN32)
DIR *dir;
if((dir = opendir("/etc/udev/rules.d"))) { // Linux udev land
closedir(dir);
if(access("/etc/udev/rules.d", F_OK) == 0) // Linux udev land
imsg_info("run the command below to show udev rules recitifying USB access\n" "$ %s -c %s/u\n", progname, pgmid);
} else
#endif
else
imsg_info("check out USB port permissions on your OS and set them correctly\n");
}