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.
- Renamed
01myscripts( from here ), and with 755 rights put in/system/etc/init.d/ - Named usually
script.sh, and with the rights of 700 put in/su/su.d/and/system/su.d/ - The title did the following:
#!/system/bin/suand 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.