-
-
Save Nokius/54e50ac849e840d752da41a5086e2c20 to your computer and use it in GitHub Desktop.
[SFOS] r7plus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sh: cat: command not found | |
sh-3.2# /bin/cat /lib/systemd/system/firmware.mount | |
[Unit] | |
Description=Droid mount for /firmware | |
Before=local-fs.target systemd-modules-load.service | |
[Mount] | |
What=/dev/block/bootdevice/by-name/modem | |
Where=/firmware | |
Type=vfat | |
Options=ro,shortname=lower,uid=1000,gid=1026,dmask=227,fmask=337 | |
# Options had SELinux context option: context=u:object_r:firmware_file:s0 | |
# Default is 90 which makes mount period too long in case of | |
# errors so drop it down a notch. | |
TimeoutSec=10 | |
[Install] | |
WantedBy=local-fs.target | |
# From ./out/target/product/r7plus/root/fstab.qcom : | |
# /dev/block/bootdevice/by-name/modem /firmware vfat ro,shortname=lower,uid=1000,gid=1026,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i \ | |
-e 's block/platform/soc.0/f9824900.sdhci/DDR mmcblk0p2 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/DRIVER mmcblk0p32 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/LOGO mmcblk0p21 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/aboot mmcblk0p9 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/abootbak mmcblk0p10 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/boot mmcblk0p22 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/cache mmcblk0p26 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/config mmcblk0p30 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/devinfo mmcblk0p25 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/fsc mmcblk0p5 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/fsg mmcblk0p3 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/grow mmcblk0p38 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/hyp mmcblk0p15 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/hypbak mmcblk0p16 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/keystore mmcblk0p29 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/misc mmcblk0p28 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/modem mmcblk0p1 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/modemst1 mmcblk0p17 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/modemst2 mmcblk0p18 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/oem mmcblk0p31 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/oppodycnvbk mmcblk0p19 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/oppostanvbk mmcblk0p20 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/persist mmcblk0p27 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/recovery mmcblk0p23 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/reserve1 mmcblk0p33 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/reserve2 mmcblk0p34 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/reserve3 mmcblk0p35 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/reserve4 mmcblk0p36 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/rpm mmcblk0p11 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/rpmbak mmcblk0p12 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/sbl1 mmcblk0p7 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/sbl1bak mmcblk0p8 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/sec mmcblk0p4 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/ssd mmcblk0p6 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/system mmcblk0p24 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/tz mmcblk0p13 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/tzbak mmcblk0p14 ' \ | |
-e 's block/platform/soc.0/f9824900.sdhci/userdata mmcblk0p37 ' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ # ls -la /dev/block/bootdevice/by-name/ | |
_ | |
lrwxrwxrwx 1 root root 20 Jan 1 02:38 DDR -> /dev/block/mmcblk0p2 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 DRIVER -> /dev/block/mmcblk0p32 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 LOGO -> /dev/block/mmcblk0p21 | |
lrwxrwxrwx 1 root root 20 Jan 1 02:38 aboot -> /dev/block/mmcblk0p9 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 abootbak -> /dev/block/mmcblk0p10 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 boot -> /dev/block/mmcblk0p22 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 cache -> /dev/block/mmcblk0p26 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 config -> /dev/block/mmcblk0p30 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 devinfo -> /dev/block/mmcblk0p25 | |
lrwxrwxrwx 1 root root 20 Jan 1 02:38 fsc -> /dev/block/mmcblk0p5 | |
lrwxrwxrwx 1 root root 20 Jan 1 02:38 fsg -> /dev/block/mmcblk0p3 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 grow -> /dev/block/mmcblk0p38 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 hyp -> /dev/block/mmcblk0p15 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 hypbak -> /dev/block/mmcblk0p16 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 keystore -> /dev/block/mmcblk0p29 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 misc -> /dev/block/mmcblk0p28 | |
lrwxrwxrwx 1 root root 20 Jan 1 02:38 modem -> /dev/block/mmcblk0p1 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 modemst1 -> /dev/block/mmcblk0p17 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 modemst2 -> /dev/block/mmcblk0p18 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 oem -> /dev/block/mmcblk0p31 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 oppodycnvbk -> /dev/block/mmcblk0p19 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 oppostanvbk -> /dev/block/mmcblk0p20 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 persist -> /dev/block/mmcblk0p27 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 recovery -> /dev/block/mmcblk0p23 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 reserve1 -> /dev/block/mmcblk0p33 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 reserve2 -> /dev/block/mmcblk0p34 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 reserve3 -> /dev/block/mmcblk0p35 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 reserve4 -> /dev/block/mmcblk0p36 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 rpm -> /dev/block/mmcblk0p11 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 rpmbak -> /dev/block/mmcblk0p12 | |
lrwxrwxrwx 1 root root 20 Jan 1 02:38 sbl1 -> /dev/block/mmcblk0p7 | |
lrwxrwxrwx 1 root root 20 Jan 1 02:38 sbl1bak -> /dev/block/mmcblk0p8 | |
lrwxrwxrwx 1 root root 20 Jan 1 02:38 sec -> /dev/block/mmcblk0p4 | |
lrwxrwxrwx 1 root root 20 Jan 1 02:38 ssd -> /dev/block/mmcblk0p6 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 system -> /dev/block/mmcblk0p24 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 tz -> /dev/block/mmcblk0p13 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 tzbak -> /dev/block/mmcblk0p14 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 userdata -> /dev/block/mmcblk0p37 | |
~ # |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment