I need to run a couple of commands before starting the shell:

echo 0x21 > /sys/kernel/debug/omap_mux/spi0_sclk chmod 666 /dev/ttyO2 

But how to do that? I have already tried everything that I found. Created a shell script, checked its work by launching it.

  1. Renamed 01myscripts ( from here ), and with 755 rights put in /system/etc/init.d/
  2. Named usually script.sh , and with the rights of 700 put in /su/su.d/ and /system/su.d/
  3. The title did the following: #!/system/bin/su and this: #!/su/bin/sush , like here

Worth SuperSU and Busybox. The scripts work, if you run them with the command sh script.sh or sh 01myscripts , then the result is, but after launching, nothing changes.

  • In the sense of nothing changes? do not change file permissions? or they do not want to run themselves? - tse
  • What I am trying to change in the script does not change, and these are the rights to the UART and the processor legs mode. With an explicit start, they change, and after loading there is no, then the script does not run when loading. - Eugene

0