Jump to content

Ramon

Members
  • Posts

    2
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Ramon reacted to tparys in orangepi zero plus "chown" permission change is not permanent   
    Hi Ramon,
     
    This is actually a different problem, in that /sys (sysfs) is a virtual filesystem and not actually something on the SD card. In that sense, there's nothing to save boot-to-boot.
     
    It's also a deprecated interface, so you may just want to look into the newer interface.
     
    If you do want to use the GPIO that way, you can do one of a few things:
    Make a script that configures your GPIO on every boot (such as rc.local) Write a udev rule that sets ownership of gpio files in sysfs Just run your application with setuid root privileges  
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines