I'd like some assistance with turning the below commands into an executable shell script (?sh?)sudo su  export SLOTS=/sys/devices/bone_capemgr.*/slots  cd /lib/firmware  echo PRU-GPIO-Enable > $SLOTS  exitI have attempted to grasp the concepts of wrappers and call-ins but for now this simple task is out of my grasp.Any help would be appreciated.
assistance with sh creation
shell script
If I understand the problem you want the exact code that you typed out to be runable as a shell-script?echo #!/bin/bashexport SLOTS=/sys/devices/bone_capemgr.*/slotscd /lib/firmwareecho PRU-GPIO-Enable > $SLOTSexit > file && chmod +x fileI removed the sudo su as I believe it better that you run the script using sudo and I am not sure what problems it might give you trying to set user from a script.Or to break it down, create a file and add the contents to the file using a text editor (vim, emacs or nano perhaps). I've added the first line to it to let it know what shell to use while executing, since bash is often enough default I went with that. Then you save the file to a named file, I called it file.This file needs execution rights, so I chmod +x on the file to make it executable.now you can run the script $ ./fileI might have completely missed the problem you are trying to solve, but hopefully I could help.