Guest User

Untitled

a guest
May 31st, 2019
62
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. # Fix up mount points device node names.
  3. #
  4. # /data needs to be mounted in initrd, but there is no udev that early,
  5. # which means there is no /dev/block/platform/*/by-name/* (or bootdevice).
  6. # This file is a map from the "by-name" path to /dev/mmcblkMpN.
  7. # It also serves dhd to convert fstab and *.rc mount entries to systemd units,
  8. # because at that boot stage there is still no udev "by-name" paths, even when
  9. # systemd starts to execut the "*.mount" units.
  10.  
  11. DEVICE=$1
  12. shift
  13.  
  14. echo "Fixing mount-points for device $DEVICE"
  15.  
  16. case "$DEVICE" in
  17.     "pioneer"|"discovery"|"voyager")
  18.         sed -i \
  19.             -e 's block/bootdevice/by-name/LTALabel mmcblk0p7 ' \
  20.             -e 's block/bootdevice/by-name/Qnovo mmcblk0p75 ' \
  21.             -e 's block/bootdevice/by-name/TA mmcblk0p1 ' \
  22.             -e 's block/bootdevice/by-name/abl mmcblk0p20 ' \
  23.             -e 's block/bootdevice/by-name/apdp mmcblk0p52 ' \
  24.             -e 's block/bootdevice/by-name/appslog mmcblk0p73 ' \
  25.             -e 's block/bootdevice/by-name/bluetooth_a mmcblk0p40 ' \
  26.             -e 's block/bootdevice/by-name/boot mmcblk0p38 ' \
  27.             -e 's block/bootdevice/by-name/cdt mmcblk0p24 ' \
  28.             -e 's block/bootdevice/by-name/cmnlib64 mmcblk0p27 ' \
  29.             -e 's block/bootdevice/by-name/cmnlib mmcblk0p25 ' \
  30.             -e 's block/bootdevice/by-name/ddr mmcblk0p59 ' \
  31.             -e 's block/bootdevice/by-name/devcfg mmcblk0p29 ' \
  32.             -e 's block/bootdevice/by-name/devinfo mmcblk0p51 ' \
  33.             -e 's block/bootdevice/by-name/diag mmcblk0p74 ' \
  34.             -e 's block/bootdevice/by-name/dip mmcblk0p50 ' \
  35.             -e 's block/bootdevice/by-name/dpo mmcblk0p54 ' \
  36.             -e 's block/bootdevice/by-name/dsp_a mmcblk0p44 ' \
  37.             -e 's block/bootdevice/by-name/frp mmcblk0p62 ' \
  38.             -e 's block/bootdevice/by-name/fsc mmcblk0p3 ' \
  39.             -e 's block/bootdevice/by-name/fsg mmcblk0p6 ' \
  40.             -e 's block/bootdevice/by-name/fsmetadata mmcblk0p72 ' \
  41.             -e 's block/bootdevice/by-name/hyp mmcblk0p16 ' \
  42.             -e 's block/bootdevice/by-name/keymaster mmcblk0p22 ' \
  43.             -e 's block/bootdevice/by-name/keystore mmcblk0p67 ' \
  44.             -e 's block/bootdevice/by-name/limits mmcblk0p56 ' \
  45.             -e 's block/bootdevice/by-name/logfs mmcblk0p58 ' \
  46.             -e 's block/bootdevice/by-name/mdtp mmcblk0p48 ' \
  47.             -e 's block/bootdevice/by-name/mdtpsecapp mmcblk0p46 ' \
  48.             -e 's block/bootdevice/by-name/misc mmcblk0p64 ' \
  49.             -e 's block/bootdevice/by-name/modem_a mmcblk0p42 ' \
  50.             -e 's block/bootdevice/by-name/modemst1 mmcblk0p4 ' \
  51.             -e 's block/bootdevice/by-name/modemst2 mmcblk0p5 ' \
  52.             -e 's block/bootdevice/by-name/msadp mmcblk0p53 ' \
  53.             -e 's block/bootdevice/by-name/oem_a mmcblk0p68 ' \
  54.             -e 's block/bootdevice/by-name/persist mmcblk0p2 ' \
  55.             -e 's block/bootdevice/by-name/pmic mmcblk0p18 ' \
  56.             -e 's block/bootdevice/by-name/rddata mmcblk0p77 ' \
  57.             -e 's block/bootdevice/by-name/rdimage mmcblk0p65 ' \
  58.             -e 's block/bootdevice/by-name/rpm mmcblk0p14 ' \
  59.             -e 's block/bootdevice/by-name/sec mmcblk0p60 ' \
  60.             -e 's block/bootdevice/by-name/splash mmcblk0p55 ' \
  61.             -e 's block/bootdevice/by-name/ssd mmcblk0p61 ' \
  62.             -e 's block/bootdevice/by-name/sti mmcblk0p63 ' \
  63.             -e 's block/bootdevice/by-name/storsec mmcblk0p31 ' \
  64.             -e 's block/bootdevice/by-name/system mmcblk0p78 ' \
  65.             -e 's block/bootdevice/by-name/toolsfv mmcblk0p57 ' \
  66.             -e 's block/bootdevice/by-name/tz mmcblk0p12 ' \
  67.             -e 's block/bootdevice/by-name/tzxfl mmcblk0p36 ' \
  68.             -e 's block/bootdevice/by-name/tzxflattest mmcblk0p34 ' \
  69.             -e 's block/bootdevice/by-name/userdata mmcblk0p76 ' \
  70.             -e 's block/bootdevice/by-name/vendor mmcblk0p70 ' \
  71.             -e 's block/bootdevice/by-name/xbl mmcblk0p10 ' \
  72.             -e 's block/bootdevice/by-name/xfl mmcblk0p32 ' \
  73.             -e 's block/bootdevice/by-name/xflkeystore mmcblk0p8 ' \
  74.             -e 's block/bootdevice/by-name/xflkeystorebak mmcblk0p9 ' \
  75.             "$@"
  76.         ;;
  77.  
  78.     "ghost")
  79.         sed -i \
  80.             -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \
  81.             -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p23 ' \
  82.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p38 ' \
  83.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p40 ' \
  84.             -e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p25 ' \
  85.             -e 's block/platform/msm_sdcc.1/by-name/pds mmcblk0p28 ' \
  86.             "$@"
  87.         ;;
  88.  
  89.     "scale")
  90.         sed -i \
  91.             -e 's block/platform/msm_sdcc.1/by-name/DDR mmcblk0p4 ' \
  92.             -e 's block/platform/msm_sdcc.1/by-name/aboot mmcblk0p7 ' \
  93.             -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p19 ' \
  94.             -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p22 ' \
  95.             -e 's block/platform/msm_sdcc.1/by-name/cust mmcblk0p23 ' \
  96.             -e 's block/platform/msm_sdcc.1/by-name/erecovery mmcblk0p21 ' \
  97.             -e 's block/platform/msm_sdcc.1/by-name/fsc mmcblk0p15 ' \
  98.             -e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p13 ' \
  99.             -e 's block/platform/msm_sdcc.1/by-name/hyp mmcblk0p2 ' \
  100.             -e 's block/platform/msm_sdcc.1/by-name/log mmcblk0p17 ' \
  101.             -e 's block/platform/msm_sdcc.1/by-name/misc mmcblk0p10 ' \
  102.             -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p14 ' \
  103.             -e 's block/platform/msm_sdcc.1/by-name/modemst1 mmcblk0p11 ' \
  104.             -e 's block/platform/msm_sdcc.1/by-name/modemst2 mmcblk0p12 ' \
  105.             -e 's block/platform/msm_sdcc.1/by-name/oeminfo mmcblk0p9 ' \
  106.             -e 's block/platform/msm_sdcc.1/by-name/pad mmcblk0p8 ' \
  107.             -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p18 ' \
  108.             -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p20 ' \
  109.             -e 's block/platform/msm_sdcc.1/by-name/rpm mmcblk0p5 ' \
  110.             -e 's block/platform/msm_sdcc.1/by-name/sbl1 mmcblk0p1 ' \
  111.             -e 's block/platform/msm_sdcc.1/by-name/sec mmcblk0p3 ' \
  112.             -e 's block/platform/msm_sdcc.1/by-name/ssd mmcblk0p16 ' \
  113.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p24 ' \
  114.             -e 's block/platform/msm_sdcc.1/by-name/tz mmcblk0p6 ' \
  115.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p25 ' \
  116.             "$@"
  117.         ;;
  118.  
  119.     "lux")
  120.         sed -i \
  121.             -e 's block/bootdevice/by-name/boot mmcblk0p31 ' \
  122.             -e 's block/bootdevice/by-name/system mmcblk0p41 ' \
  123.             -e 's block/bootdevice/by-name/cache mmcblk0p40 ' \
  124.             -e 's block/bootdevice/by-name/userdata mmcblk0p42 ' \
  125.             -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \
  126.             -e 's block/bootdevice/by-name/persist mmcblk0p29 ' \
  127.             -e 's block/bootdevice/by-name/fsg mmcblk0p23 ' \
  128.             -e 's block/bootdevice/by-name/recovery mmcblk0p32 ' \
  129.             "$@"
  130.         ;;
  131.  
  132.     "victara")
  133.         sed -i \
  134.             -e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p22 ' \
  135.             -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \
  136.             -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p31 ' \
  137.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p39 ' \
  138.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p38 ' \
  139.             -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p37 ' \
  140.             -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p34 ' \
  141.             -e 's block/platform/msm_sdcc.1/by-name/pds mmcblk0p27 ' \
  142.             -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p33 ' \
  143.             "$@"
  144.         ;;
  145.  
  146.     "pico")
  147.         sed -i \
  148.             -e 's null null ' \
  149.             -e 's block/mmcblk0p3 mmcblk0p3 ' \
  150.             -e 's block/mtdblock4 mtdblock4 ' \
  151.             -e 's block/mmcblk0p2 mmcblk0p2 ' \
  152.             "$@"
  153.         ;;
  154.  
  155.     "alice")
  156.         sed -i \
  157.             -e 's block/mmcblk0p38 mmcblk0p38 ' \
  158.             -e 's block/platform/hi_mci.0/by-name/userdata mmcblk0p40 ' \
  159.             -e 's block/mmcblk0p34 mmcblk0p34 ' \
  160.             -e 's block/platform/hi_mci.0/by-name/misc mmcblk0p19 ' \
  161.             -e 's block/platform/hi_mci.0/by-name/boot mmcblk0p27 ' \
  162.             -e 's block/platform/hi_mci.0/by-name/recovery mmcblk0p28 ' \
  163.             "$@"
  164.         ;;
  165.  
  166.     "kinzie")
  167.         sed -i \
  168.             -e 's block/bootdevice/by-name/fsg mmcblk0p24 ' \
  169.             -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \
  170.             -e 's block/bootdevice/by-name/persist mmcblk0p34 ' \
  171.             -e 's block/bootdevice/by-name/userdata mmcblk0p48 ' \
  172.             -e 's block/bootdevice/by-name/system mmcblk0p47 ' \
  173.             -e 's block/bootdevice/by-name/cache mmcblk0p46 ' \
  174.             -e 's block/bootdevice/by-name/recovery mmcblk0p37 ' \
  175.             -e 's block/bootdevice/by-name/boot mmcblk0p36 ' \
  176.             -e 's block/bootdevice/by-name/bluetooth mmcblk0p18 ' \
  177.             "$@"
  178.         ;;
  179.  
  180.     "titan")
  181.         sed -i \
  182.             -e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p21 ' \
  183.             -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \
  184.             -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p29 ' \
  185.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p38 ' \
  186.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p36 ' \
  187.             -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p35 ' \
  188.             -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p32 ' \
  189.             -e 's block/platform/msm_sdcc.1/by-name/pds mmcblk0p26 ' \
  190.             -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p31 ' \
  191.             "$@"
  192.         ;;
  193.  
  194.     "thea")
  195.         sed -i \
  196.             -e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p22 ' \
  197.             -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \
  198.             -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p30 ' \
  199.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p42 ' \
  200.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p40 ' \
  201.             -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p41 ' \
  202.             -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p33 ' \
  203.             -e 's block/platform/msm_sdcc.1/by-name/pds mmcblk0p27 ' \
  204.             -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p32 ' \
  205.             "$@"
  206.         ;;
  207.  
  208.     "suzu")
  209.         sed -i \
  210.             -e 's block/bootdevice/by-name/DDR mmcblk0p16 ' \
  211.             -e 's block/bootdevice/by-name/FOTAKernel mmcblk0p42 ' \
  212.             -e 's block/bootdevice/by-name/LTALabel mmcblk0p2 ' \
  213.             -e 's block/bootdevice/by-name/Qnovo mmcblk0p46 ' \
  214.             -e 's block/bootdevice/by-name/TA mmcblk0p1 ' \
  215.             -e 's block/bootdevice/by-name/aboot mmcblk0p20 ' \
  216.             -e 's block/bootdevice/by-name/abootbak mmcblk0p21 ' \
  217.             -e 's block/bootdevice/by-name/apdp mmcblk0p37 ' \
  218.             -e 's block/bootdevice/by-name/apps_log mmcblk0p44 ' \
  219.             -e 's block/bootdevice/by-name/boot mmcblk0p22 ' \
  220.             -e 's block/bootdevice/by-name/cache mmcblk0p24 ' \
  221.             -e 's block/bootdevice/by-name/cmnlib mmcblk0p33 ' \
  222.             -e 's block/bootdevice/by-name/cmnlibbak mmcblk0p35 ' \
  223.             -e 's block/bootdevice/by-name/config mmcblk0p27 ' \
  224.             -e 's block/bootdevice/by-name/devcfg mmcblk0p31 ' \
  225.             -e 's block/bootdevice/by-name/devinfo mmcblk0p23 ' \
  226.             -e 's block/bootdevice/by-name/diag mmcblk0p45 ' \
  227.             -e 's block/bootdevice/by-name/dpo mmcblk0p39 ' \
  228.             -e 's block/bootdevice/by-name/dsp mmcblk0p13 ' \
  229.             -e 's block/bootdevice/by-name/fsg mmcblk0p17 ' \
  230.             -e 's block/bootdevice/by-name/hyp mmcblk0p11 ' \
  231.             -e 's block/bootdevice/by-name/hypbak mmcblk0p12 ' \
  232.             -e 's block/bootdevice/by-name/keymaster mmcblk0p34 ' \
  233.             -e 's block/bootdevice/by-name/keymasterbak mmcblk0p36 ' \
  234.             -e 's block/bootdevice/by-name/keystore mmcblk0p26 ' \
  235.             -e 's block/bootdevice/by-name/limits mmcblk0p29 ' \
  236.             -e 's block/bootdevice/by-name/mcfg mmcblk0p32 ' \
  237.             -e 's block/bootdevice/by-name/modem mmcblk0p3 ' \
  238.             -e 's block/bootdevice/by-name/modemst1 mmcblk0p14 ' \
  239.             -e 's block/bootdevice/by-name/modemst2 mmcblk0p15 ' \
  240.             -e 's block/bootdevice/by-name/mota mmcblk0p30 ' \
  241.             -e 's block/bootdevice/by-name/msadp mmcblk0p38 ' \
  242.             -e 's block/bootdevice/by-name/oem mmcblk0p28 ' \
  243.             -e 's block/bootdevice/by-name/persist mmcblk0p25 ' \
  244.             -e 's block/bootdevice/by-name/rdimage mmcblk0p43 ' \
  245.             -e 's block/bootdevice/by-name/rpm mmcblk0p7 ' \
  246.             -e 's block/bootdevice/by-name/rpmbak mmcblk0p8 ' \
  247.             -e 's block/bootdevice/by-name/s1sbl mmcblk0p40 ' \
  248.             -e 's block/bootdevice/by-name/s1sblbak mmcblk0p41 ' \
  249.             -e 's block/bootdevice/by-name/sbl1 mmcblk0p5 ' \
  250.             -e 's block/bootdevice/by-name/sbl1bak mmcblk0p6 ' \
  251.             -e 's block/bootdevice/by-name/sec mmcblk0p18 ' \
  252.             -e 's block/bootdevice/by-name/splash mmcblk0p19 ' \
  253.             -e 's block/bootdevice/by-name/ssd mmcblk0p4 ' \
  254.             -e 's block/bootdevice/by-name/system mmcblk0p52 ' \
  255.             -e 's block/bootdevice/by-name/tz mmcblk0p9 ' \
  256.             -e 's block/bootdevice/by-name/tzbak mmcblk0p10 ' \
  257.             -e 's block/bootdevice/by-name/tzs1attest mmcblk0p47 ' \
  258.             -e 's block/bootdevice/by-name/tzs1attestbak mmcblk0p48 ' \
  259.             -e 's block/bootdevice/by-name/tzs1sbl mmcblk0p49 ' \
  260.             -e 's block/bootdevice/by-name/tzs1sblbak mmcblk0p50 ' \
  261.             -e 's block/bootdevice/by-name/userdata mmcblk0p51 ' \
  262.             "$@"
  263.         ;;
  264.  
  265.     "moto_msm8960_jbbl")
  266.         sed -i \
  267.             -e 's block/platform/msm_sdcc.1/by-name/aboot mmcblk0p5 ' \
  268.             -e 's block/platform/msm_sdcc.1/by-name/abootBackup mmcblk0p12 ' \
  269.             -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p31 ' \
  270.             -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p36 ' \
  271.             -e 's block/platform/msm_sdcc.1/by-name/carriercust mmcblk0p35 ' \
  272.             -e 's block/platform/msm_sdcc.1/by-name/cdrom mmcblk0p38 ' \
  273.             -e 's block/platform/msm_sdcc.1/by-name/cid mmcblk0p28 ' \
  274.             -e 's block/platform/msm_sdcc.1/by-name/devtree mmcblk0p30 ' \
  275.             -e 's block/platform/msm_sdcc.1/by-name/dhob mmcblk0p21 ' \
  276.             -e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p24 ' \
  277.             -e 's block/platform/msm_sdcc.1/by-name/hob mmcblk0p20 ' \
  278.             -e 's block/platform/msm_sdcc.1/by-name/kpan mmcblk0p33 ' \
  279.             -e 's block/platform/msm_sdcc.1/by-name/logo mmcblk0p29 ' \
  280.             -e 's block/platform/msm_sdcc.1/by-name/mbl mmcblk0p19 ' \
  281.             -e 's block/platform/msm_sdcc.1/by-name/misc mmcblk0p26 ' \
  282.             -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \
  283.             -e 's block/platform/msm_sdcc.1/by-name/modemst1 mmcblk0p17 ' \
  284.             -e 's block/platform/msm_sdcc.1/by-name/modemst2 mmcblk0p18 ' \
  285.             -e 's block/platform/msm_sdcc.1/by-name/padA mmcblk0p9 ' \
  286.             -e 's block/platform/msm_sdcc.1/by-name/padB mmcblk0p16 ' \
  287.             -e 's block/platform/msm_sdcc.1/by-name/pds mmcblk0p27 ' \
  288.             -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p22 ' \
  289.             -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p32 ' \
  290.             -e 's block/platform/msm_sdcc.1/by-name/rpm mmcblk0p6 ' \
  291.             -e 's block/platform/msm_sdcc.1/by-name/rpmBackup mmcblk0p13 ' \
  292.             -e 's block/platform/msm_sdcc.1/by-name/sbl1 mmcblk0p2 ' \
  293.             -e 's block/platform/msm_sdcc.1/by-name/sbl2 mmcblk0p3 ' \
  294.             -e 's block/platform/msm_sdcc.1/by-name/sbl2Backup mmcblk0p10 ' \
  295.             -e 's block/platform/msm_sdcc.1/by-name/sbl3 mmcblk0p4 ' \
  296.             -e 's block/platform/msm_sdcc.1/by-name/sbl3Backup mmcblk0p11 ' \
  297.             -e 's block/platform/msm_sdcc.1/by-name/sp mmcblk0p25 ' \
  298.             -e 's block/platform/msm_sdcc.1/by-name/ssd mmcblk0p23 ' \
  299.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p37 ' \
  300.             -e 's block/platform/msm_sdcc.1/by-name/tombstones mmcblk0p34 ' \
  301.             -e 's block/platform/msm_sdcc.1/by-name/tz mmcblk0p7 ' \
  302.             -e 's block/platform/msm_sdcc.1/by-name/tzBackup mmcblk0p14 ' \
  303.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p39 ' \
  304.             -e 's block/platform/msm_sdcc.1/by-name/utags mmcblk0p8 ' \
  305.             -e 's block/platform/msm_sdcc.1/by-name/utagsBackup mmcblk0p15 ' \
  306.             "$@"
  307.         ;;
  308.  
  309.     "griffin")
  310.         sed -i \
  311.             -e 's block/bootdevice/by-name/aboot sdb12 ' \
  312.             -e 's block/bootdevice/by-name/abootbak sdb13 ' \
  313.             -e 's block/bootdevice/by-name/apdp sdc6 ' \
  314.             -e 's block/bootdevice/by-name/bluetooth sda11 ' \
  315.             -e 's block/bootdevice/by-name/boot sda17 ' \
  316.             -e 's block/bootdevice/by-name/cache sda19 ' \
  317.             -e 's block/bootdevice/by-name/carrier sda9 ' \
  318.             -e 's block/bootdevice/by-name/cid sda4 ' \
  319.             -e 's block/bootdevice/by-name/cmnlib sdb16 ' \
  320.             -e 's block/bootdevice/by-name/cmnlib64 sdb18 ' \
  321.             -e 's block/bootdevice/by-name/cmnlib64bak sdb19 ' \
  322.             -e 's block/bootdevice/by-name/cmnlibbak sdb17 ' \
  323.             -e 's block/bootdevice/by-name/customize sda8 ' \
  324.             -e 's block/bootdevice/by-name/ddr sdb23 ' \
  325.             -e 's block/bootdevice/by-name/devcfg sdb8 ' \
  326.             -e 's block/bootdevice/by-name/devcfgbak sdb9 ' \
  327.             -e 's block/bootdevice/by-name/dip sdc5 ' \
  328.             -e 's block/bootdevice/by-name/dpo sdc8 ' \
  329.             -e 's block/bootdevice/by-name/dsp sdc1 ' \
  330.             -e 's block/bootdevice/by-name/frp sda7 ' \
  331.             -e 's block/bootdevice/by-name/fsc sdd1 ' \
  332.             -e 's block/bootdevice/by-name/fsg sdc4 ' \
  333.             -e 's block/bootdevice/by-name/hw sdc3 ' \
  334.             -e 's block/bootdevice/by-name/hyp sdb10 ' \
  335.             -e 's block/bootdevice/by-name/hypbak sdb11 ' \
  336.             -e 's block/bootdevice/by-name/keymaster sdb14 ' \
  337.             -e 's block/bootdevice/by-name/keymasterbak sdb15 ' \
  338.             -e 's block/bootdevice/by-name/kpan sda10 ' \
  339.             -e 's block/bootdevice/by-name/logo sda18 ' \
  340.             -e 's block/bootdevice/by-name/logs sdb24 ' \
  341.             -e 's block/bootdevice/by-name/metadata sdd2 ' \
  342.             -e 's block/bootdevice/by-name/misc sda5 ' \
  343.             -e 's block/bootdevice/by-name/modem sda16 ' \
  344.             -e 's block/bootdevice/by-name/modemst1 sda12 ' \
  345.             -e 's block/bootdevice/by-name/modemst2 sda13 ' \
  346.             -e 's block/bootdevice/by-name/msadp sdc7 ' \
  347.             -e 's block/bootdevice/by-name/oem sdc9 ' \
  348.             -e 's block/bootdevice/by-name/persist sda3 ' \
  349.             -e 's block/bootdevice/by-name/pmic sdb2 ' \
  350.             -e 's block/bootdevice/by-name/pmicbak sdb3 ' \
  351.             -e 's block/bootdevice/by-name/prov sdb20 ' \
  352.             -e 's block/bootdevice/by-name/provbak sdb21 ' \
  353.             -e 's block/bootdevice/by-name/recovery sda14 ' \
  354.             -e 's block/bootdevice/by-name/rpm sdb4 ' \
  355.             -e 's block/bootdevice/by-name/rpmbak sdb5 ' \
  356.             -e 's block/bootdevice/by-name/sec sdb22 ' \
  357.             -e 's block/bootdevice/by-name/sp sdc2 ' \
  358.             -e 's block/bootdevice/by-name/ssd sda6 ' \
  359.             -e 's block/bootdevice/by-name/system sda15 ' \
  360.             -e 's block/bootdevice/by-name/tz sdb6 ' \
  361.             -e 's block/bootdevice/by-name/tzbak sdb7 ' \
  362.             -e 's block/bootdevice/by-name/userdata sda20 ' \
  363.             -e 's block/bootdevice/by-name/utags sda1 ' \
  364.             -e 's block/bootdevice/by-name/utagsBackup sda2 ' \
  365.             -e 's block/bootdevice/by-name/xbl sdb1 ' \
  366.             "$@"
  367.         ;;
  368.  
  369.     "eva")
  370.         sed -i \
  371.             -e 's block/platform/hi_mci.0/by-name/3rdmodem mmcblk0p35 ' \
  372.             -e 's block/platform/hi_mci.0/by-name/3rdmodemnvm mmcblk0p14 ' \
  373.             -e 's block/platform/hi_mci.0/by-name/3rdmodemnvmbkp mmcblk0p15 ' \
  374.             -e 's block/platform/hi_mci.0/by-name/boot mmcblk0p28 ' \
  375.             -e 's block/platform/hi_mci.0/by-name/cache mmcblk0p36 ' \
  376.             -e 's block/platform/hi_mci.0/by-name/cust mmcblk0p40 ' \
  377.             -e 's block/platform/hi_mci.0/by-name/dfx mmcblk0p34 ' \
  378.             -e 's block/platform/hi_mci.0/by-name/dts mmcblk0p30 ' \
  379.             -e 's block/platform/hi_mci.0/by-name/fastboot mmcblk0p5 ' \
  380.             -e 's block/platform/hi_mci.0/by-name/frp mmcblk0p4 ' \
  381.             -e 's block/platform/hi_mci.0/by-name/fw_hifi mmcblk0p27 ' \
  382.             -e 's block/platform/hi_mci.0/by-name/fw_lpm3 mmcblk0p3 ' \
  383.             -e 's block/platform/hi_mci.0/by-name/hisitest0 mmcblk0p37 ' \
  384.             -e 's block/platform/hi_mci.0/by-name/hisitest1 mmcblk0p38 ' \
  385.             -e 's block/platform/hi_mci.0/by-name/hisitest2 mmcblk0p41 ' \
  386.             -e 's block/platform/hi_mci.0/by-name/misc mmcblk0p20 ' \
  387.             -e 's block/platform/hi_mci.0/by-name/modem mmcblk0p31 ' \
  388.             -e 's block/platform/hi_mci.0/by-name/modem_dsp mmcblk0p32 ' \
  389.             -e 's block/platform/hi_mci.0/by-name/modem_dtb mmcblk0p33 ' \
  390.             -e 's block/platform/hi_mci.0/by-name/modem_om mmcblk0p18 ' \
  391.             -e 's block/platform/hi_mci.0/by-name/modemnvm_backup mmcblk0p10 ' \
  392.             -e 's block/platform/hi_mci.0/by-name/modemnvm_factory mmcblk0p6 ' \
  393.             -e 's block/platform/hi_mci.0/by-name/modemnvm_img mmcblk0p11 ' \
  394.             -e 's block/platform/hi_mci.0/by-name/modemnvm_system mmcblk0p12 ' \
  395.             -e 's block/platform/hi_mci.0/by-name/modemnvm_update mmcblk0p21 ' \
  396.             -e 's block/platform/hi_mci.0/by-name/nvme mmcblk0p7 ' \
  397.             -e 's block/platform/hi_mci.0/by-name/oeminfo mmcblk0p8 ' \
  398.             -e 's block/platform/hi_mci.0/by-name/persist mmcblk0p16 ' \
  399.             -e 's block/platform/hi_mci.0/by-name/recovery mmcblk0p29 ' \
  400.             -e 's block/platform/hi_mci.0/by-name/recovery2 mmcblk0p22 ' \
  401.             -e 's block/platform/hi_mci.0/by-name/reserved1 mmcblk0p17 ' \
  402.             -e 's block/platform/hi_mci.0/by-name/reserved2 mmcblk0p23 ' \
  403.             -e 's block/platform/hi_mci.0/by-name/secure_storage mmcblk0p13 ' \
  404.             -e 's block/platform/hi_mci.0/by-name/sensorhub mmcblk0p26 ' \
  405.             -e 's block/platform/hi_mci.0/by-name/splash mmcblk0p9 ' \
  406.             -e 's block/platform/hi_mci.0/by-name/splash2 mmcblk0p19 ' \
  407.             -e 's block/platform/hi_mci.0/by-name/system mmcblk0p39 ' \
  408.             -e 's block/platform/hi_mci.0/by-name/teeos mmcblk0p24 ' \
  409.             -e 's block/platform/hi_mci.0/by-name/trustfirmware mmcblk0p25 ' \
  410.             -e 's block/platform/hi_mci.0/by-name/userdata mmcblk0p42 ' \
  411.             -e 's block/platform/hi_mci.0/by-name/vrl mmcblk0p1 ' \
  412.             -e 's block/platform/hi_mci.0/by-name/vrl_backup mmcblk0p2 ' \
  413.             "$@"
  414.         ;;
  415.  
  416.     "matisse" | "matissewifi" | "matisse3g" | "matisselte")
  417.         sed -i \
  418.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p23 ' \
  419.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p26 ' \
  420.             -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p15 ' \
  421.             -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p21 ' \
  422.             -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p2 ' \
  423.             -e 's block/platform/msm_sdcc.1/by-name/modemst1 mmcblk0p12 ' \
  424.             -e 's block/platform/msm_sdcc.1/by-name/modemst2 mmcblk0p13 ' \
  425.             -e 's block/platform/msm_sdcc.1/by-name/apnhlos mmcblk0p1 ' \
  426.             -e 's block/platform/msm_sdcc.1/by-name/efs mmcblk0p11 ' \
  427.             -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p24 ' \
  428.             -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p14 ' \
  429.             "$@"
  430.         ;;
  431.  
  432.     "FP2")
  433.         sed -i \
  434.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p13 ' \
  435.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p20 ' \
  436.             -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p16 ' \
  437.             -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p14 ' \
  438.             -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \
  439.             -e 's block/platform/msm_sdcc.1/by-name/modemst1 mmcblk0p11 ' \
  440.             -e 's block/platform/msm_sdcc.1/by-name/modemst2 mmcblk0p12 ' \
  441.             -e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p17 ' \
  442.             -e 's block/platform/msm_sdcc.1/by-name/fsc mmcblk0p18 ' \
  443.             -e 's block/platform/msm_sdcc.1/by-name/dbi mmcblk0p3 ' \
  444.             -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p15 ' \
  445.             -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p8 ' \
  446.             "$@"
  447.         ;;
  448.  
  449.     "onyx")
  450.         sed -i \
  451.             -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p7 ' \
  452.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p27 ' \
  453.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p28 ' \
  454.             -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p15 ' \
  455.             -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p14 ' \
  456.             -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \
  457.             "$@"
  458.         ;;
  459.  
  460.     "bullhead")
  461.         sed -i \
  462.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/DDR mmcblk0p28 ' \
  463.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/aboot mmcblk0p8 ' \
  464.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/abootbak mmcblk0p14 ' \
  465.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/apdp mmcblk0p17 ' \
  466.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/boot mmcblk0p37 ' \
  467.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/cache mmcblk0p40 ' \
  468.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/cmnlib mmcblk0p33 ' \
  469.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/cmnlibak mmcblk0p35 ' \
  470.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/config mmcblk0p16 ' \
  471.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/devinfo mmcblk0p43 ' \
  472.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/dpo mmcblk0p19 ' \
  473.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/fsc mmcblk0p20 ' \
  474.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/fsg mmcblk0p27 ' \
  475.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/grow mmcblk0p46 ' \
  476.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/hyp mmcblk0p6 ' \
  477.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/hypbak mmcblk0p12 ' \
  478.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/imgdata mmcblk0p29 ' \
  479.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/keymaster mmcblk0p32 ' \
  480.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/keymasterbak mmcblk0p34 ' \
  481.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/keystore mmcblk0p44 ' \
  482.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/laf mmcblk0p31 ' \
  483.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/limits mmcblk0p15 ' \
  484.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/metadata mmcblk0p30 ' \
  485.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/misc mmcblk0p23 ' \
  486.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/modem mmcblk0p1 ' \
  487.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/modemst1 mmcblk0p25 ' \
  488.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/modemst2 mmcblk0p26 ' \
  489.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/msadp mmcblk0p18 ' \
  490.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/oem mmcblk0p36 ' \
  491.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/persist mmcblk0p24 ' \
  492.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/persistent mmcblk0p42 ' \
  493.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/pmic mmcblk0p2 ' \
  494.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/pmicbak mmcblk0p10 ' \
  495.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/recovery mmcblk0p38 ' \
  496.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/rpm mmcblk0p7 ' \
  497.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/rpmbak mmcblk0p13 ' \
  498.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/sbl1 mmcblk0p3 ' \
  499.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/sbl1bak mmcblk0p9 ' \
  500.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/sdi mmcblk0p5 ' \
  501.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/sec mmcblk0p22 ' \
  502.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/ssd mmcblk0p21 ' \
  503.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/system mmcblk0p41 ' \
  504.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/tz mmcblk0p4 ' \
  505.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/tzbak mmcblk0p11 ' \
  506.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/userdata mmcblk0p45 ' \
  507.             -e 's block/platform/soc.0/f9824900.sdhci/by-name/vendor mmcblk0p39 ' \
  508.             "$@"
  509.         ;;
  510.  
  511.     "hammerhead")
  512.         sed -i \
  513.             -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \
  514.             -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p16 ' \
  515.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p25 ' \
  516.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p28 ' \
  517.             "$@"
  518.         ;;
  519.  
  520.     "mako")
  521.         sed -i \
  522.             -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \
  523.             -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p20 ' \
  524.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p21 ' \
  525.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p23 ' \
  526.             "$@"
  527.         ;;
  528.  
  529.     "grouper")
  530.         sed -i \
  531.             -e 's block/platform/sdhci-tegra.3/by-name/APP mmcblk0p3 ' \
  532.             -e 's block/platform/sdhci-tegra.3/by-name/CAC mmcblk0p4 ' \
  533.             -e 's block/platform/sdhci-tegra.3/by-name/UDA mmcblk0p9 ' \
  534.             -e 's block/platform/sdhci-tegra.3/by-name/MSC mmcblk0p5 ' \
  535.             -e 's block/platform/sdhci-tegra.3/by-name/LNX mmcblk0p2 ' \
  536.             -e 's block/platform/sdhci-tegra.3/by-name/SOS mmcblk0p1 ' \
  537.             "$@"
  538.         ;;
  539.  
  540.     "tilapia")
  541.         sed -i \
  542.             -e 's block/platform/sdhci-tegra.3/by-name/APP mmcblk0p3 ' \
  543.             -e 's block/platform/sdhci-tegra.3/by-name/CAC mmcblk0p5 ' \
  544.             -e 's block/platform/sdhci-tegra.3/by-name/UDA mmcblk0p10 ' \
  545.             -e 's block/platform/sdhci-tegra.3/by-name/MSC mmcblk0p6 ' \
  546.             -e 's block/platform/sdhci-tegra.3/by-name/LNX mmcblk0p2 ' \
  547.             -e 's block/platform/sdhci-tegra.3/by-name/SOS mmcblk0p1 ' \
  548.             "$@"
  549.         ;;
  550.  
  551.     "i9305" | "encore" | "n7000" | "n7100" | "i9300" | "anzu" | \
  552.     "coconut" | "haida" | "hallon" | "iyokan" | "mango" | "phoenix" | \
  553.     "satsuma" | "smultron" | "urushi" | "zeus" | "jenad")
  554.     # Untested for other revisions of Samsung GT-S6500:
  555.     # | "jena" | "trebon")
  556.         sed -i \
  557.             -e 's /block/ / ' \
  558.             "$@"
  559.         ;;
  560.  
  561.     "shieldtablet")
  562.         sed -i \
  563.             -e 's block/platform/sdhci-tegra.3/by-name/APP mmcblk0p14 ' \
  564.             -e 's block/platform/sdhci-tegra.3/by-name/CAC mmcblk0p15 ' \
  565.             -e 's block/platform/sdhci-tegra.3/by-name/UDA mmcblk0p24 ' \
  566.             -e 's block/platform/sdhci-tegra.3/by-name/MSC mmcblk0p16 ' \
  567.             -e 's block/platform/sdhci-tegra.3/by-name/LNX mmcblk0p13 ' \
  568.             -e 's block/platform/sdhci-tegra.3/by-name/SOS mmcblk0p11 ' \
  569.             "$@"
  570.         ;;
  571.  
  572.     "p3100" | "p3110" | "p3113" | "p5100" | "p5110" | "p5113" | "espressowifi" | "espresso3g" | "i9100g")
  573.         sed -i \
  574.             -e 's block/platform/omap/omap_hsmmc.1/by-name/DATAFS mmcblk0p10 ' \
  575.             -e 's block/platform/omap/omap_hsmmc.1/by-name/KERNEL mmcblk0p5 ' \
  576.             -e 's block/platform/omap/omap_hsmmc.1/by-name/FACTORYFS mmcblk0p9 ' \
  577.             -e 's block/platform/omap/omap_hsmmc.1/by-name/EFS mmcblk0p1 ' \
  578.             -e 's block/platform/omap/omap_hsmmc.1/by-name/CACHE mmcblk0p7 ' \
  579.             "$@"
  580.         ;;
  581.  
  582.     "maguro")
  583.         sed -i \
  584.             -e 's block/platform/omap/omap_hsmmc.0/by-name/system mmcblk0p10 ' \
  585.             -e 's block/platform/omap/omap_hsmmc.0/by-name/cache mmcblk0p11 ' \
  586.             -e 's block/platform/omap/omap_hsmmc.0/by-name/userdata mmcblk0p12 ' \
  587.             -e 's block/platform/omap/omap_hsmmc.0/by-name/misc mmcblk0p5 ' \
  588.             -e 's block/platform/omap/omap_hsmmc.0/by-name/boot mmcblk0p7 ' \
  589.             -e 's block/platform/omap/omap_hsmmc.0/by-name/recovery mmcblk0p8 ' \
  590.             -e 's block/platform/omap/omap_hsmmc.0/by-name/sbl mmcblk0p2 ' \
  591.             -e 's block/platform/omap/omap_hsmmc.0/by-name/xloader mmcblk0p1 ' \
  592.             -e 's block/platform/omap/omap_hsmmc.0/by-name/radio mmcblk0p9 ' \
  593.             -e 's block/platform/omap/omap_hsmmc.0/by-name/efs mmcblk0p3 ' \
  594.             "$@"
  595.         ;;
  596.  
  597.     "cheeseburger")
  598.         sed -i \
  599.             -e 's block/bootdevice/by-name/LOGO sde18 ' \
  600.             -e 's block/bootdevice/by-name/abl sde16 ' \
  601.             -e 's block/bootdevice/by-name/ablbak sde17 ' \
  602.             -e 's block/bootdevice/by-name/apdp sde31 ' \
  603.             -e 's block/bootdevice/by-name/bluetooth sde24 ' \
  604.             -e 's block/bootdevice/by-name/boot sde19 ' \
  605.             -e 's block/bootdevice/by-name/boot_aging sde20 ' \
  606.             -e 's block/bootdevice/by-name/cache sda3 ' \
  607.             -e 's block/bootdevice/by-name/cdt sdd2 ' \
  608.             -e 's block/bootdevice/by-name/cmnlib sde27 ' \
  609.             -e 's block/bootdevice/by-name/cmnlib64 sde29 ' \
  610.             -e 's block/bootdevice/by-name/cmnlib64bak sde30 ' \
  611.             -e 's block/bootdevice/by-name/cmnlibbak sde28 ' \
  612.             -e 's block/bootdevice/by-name/config sda12 ' \
  613.             -e 's block/bootdevice/by-name/ddr sdd3 ' \
  614.             -e 's block/bootdevice/by-name/devcfg sde39 ' \
  615.             -e 's block/bootdevice/by-name/devinfo sde23 ' \
  616.             -e 's block/bootdevice/by-name/dip sde14 ' \
  617.             -e 's block/bootdevice/by-name/dpo sde33 ' \
  618.             -e 's block/bootdevice/by-name/dsp sde11 ' \
  619.             -e 's block/bootdevice/by-name/frp sda6 ' \
  620.             -e 's block/bootdevice/by-name/fsc sdf4 ' \
  621.             -e 's block/bootdevice/by-name/fsg sdf3 ' \
  622.             -e 's block/bootdevice/by-name/fw_4g9n4 sde45 ' \
  623.             -e 's block/bootdevice/by-name/fw_4j1ed sde43 ' \
  624.             -e 's block/bootdevice/by-name/fw_4t0n8 sde46 ' \
  625.             -e 's block/bootdevice/by-name/fw_8v1ee sde44 ' \
  626.             -e 's block/bootdevice/by-name/hyp sde5 ' \
  627.             -e 's block/bootdevice/by-name/hypbak sde6 ' \
  628.             -e 's block/bootdevice/by-name/keymaster sde25 ' \
  629.             -e 's block/bootdevice/by-name/keymasterbak sde26 ' \
  630.             -e 's block/bootdevice/by-name/keystore sda5 ' \
  631.             -e 's block/bootdevice/by-name/limits sde35 ' \
  632.             -e 's block/bootdevice/by-name/logdump sde40 ' \
  633.             -e 's block/bootdevice/by-name/logfs sde37 ' \
  634.             -e 's block/bootdevice/by-name/md5 sdf5 ' \
  635.             -e 's block/bootdevice/by-name/mdtp sde15 ' \
  636.             -e 's block/bootdevice/by-name/mdtpsecapp sde12 ' \
  637.             -e 's block/bootdevice/by-name/mdtpsecappbak sde13 ' \
  638.             -e 's block/bootdevice/by-name/minidump sde47 ' \
  639.             -e 's block/bootdevice/by-name/misc sda4 ' \
  640.             -e 's block/bootdevice/by-name/modem sde10 ' \
  641.             -e 's block/bootdevice/by-name/modemst1 sdf1 ' \
  642.             -e 's block/bootdevice/by-name/modemst2 sdf2 ' \
  643.             -e 's block/bootdevice/by-name/msadp sde32 ' \
  644.             -e 's block/bootdevice/by-name/oem_dycnvbk sda7 ' \
  645.             -e 's block/bootdevice/by-name/oem_stanvbk sda8 ' \
  646.             -e 's block/bootdevice/by-name/param sda9 ' \
  647.             -e 's block/bootdevice/by-name/persist sda2 ' \
  648.             -e 's block/bootdevice/by-name/pmic sde8 ' \
  649.             -e 's block/bootdevice/by-name/pmicbak sde9 ' \
  650.             -e 's block/bootdevice/by-name/recovery sde22 ' \
  651.             -e 's block/bootdevice/by-name/reserve sdd1 ' \
  652.             -e 's block/bootdevice/by-name/reserve1 sda10 ' \
  653.             -e 's block/bootdevice/by-name/reserve2 sda11 ' \
  654.             -e 's block/bootdevice/by-name/rpm sde1 ' \
  655.             -e 's block/bootdevice/by-name/rpmbak sde2 ' \
  656.             -e 's block/bootdevice/by-name/sec sde7 ' \
  657.             -e 's block/bootdevice/by-name/splash sde34 ' \
  658.             -e 's block/bootdevice/by-name/ssd sda1 ' \
  659.             -e 's block/bootdevice/by-name/sti sde38 ' \
  660.             -e 's block/bootdevice/by-name/storsec sde41 ' \
  661.             -e 's block/bootdevice/by-name/storsecbak sde42 ' \
  662.             -e 's block/bootdevice/by-name/system sde21 ' \
  663.             -e 's block/bootdevice/by-name/toolsfv sde36 ' \
  664.             -e 's block/bootdevice/by-name/tz sde3 ' \
  665.             -e 's block/bootdevice/by-name/tzbak sde4 ' \
  666.             -e 's block/bootdevice/by-name/userdata sda13 ' \
  667.             -e 's block/bootdevice/by-name/xbl sdb1 ' \
  668.             -e 's block/bootdevice/by-name/xblbak sdc1 ' \
  669.             "$@"
  670.         ;;
  671.  
  672.     "bacon")
  673.         sed -i \
  674.             -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \
  675.             -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p15 ' \
  676.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p14 ' \
  677.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p28 ' \
  678.             "$@"
  679.         ;;
  680.  
  681.     "ace")
  682.        sed -i \
  683.             -e 's block/platform/msm_sdcc.2/by-num/p25 mmcblk0p25 ' \
  684.             -e 's block/platform/msm_sdcc.2/by-num/p26 mmcblk0p26 ' \
  685.             -e 's block/platform/msm_sdcc.2/by-num/p27 mmcblk0p27 ' \
  686.             -e 's block/platform/msm_sdcc.2/by-num/p28 mmcblk0p28 ' \
  687.             "$@"
  688.         ;;
  689.  
  690.     "flo"|"deb")
  691.         sed -i \
  692.             -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p4 ' \
  693.             -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p14 ' \
  694.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p22 ' \
  695.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p30 ' \
  696.             -e 's block/platform/msm_sdcc.1/by-name/radio mmcblk0p1 ' \
  697.             -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p4 ' \
  698.             -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p25 ' \
  699.             -e 's block/platform/msm_sdcc.1/by-name/misc mmcblk0p24 ' \
  700.             "$@"
  701.         ;;
  702.  
  703.     "yuga")
  704.         sed -i \
  705.             -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p17 ' \
  706.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p24 ' \
  707.             -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p25 ' \
  708.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p26 ' \
  709.             -e 's block/platform/msm_sdcc.1/by-name/LTALabel mmcblk1 ' \
  710.             "$@"
  711.         ;;
  712.  
  713.     "z3c" | "sirius")
  714.     # Z3 compact is also called "aries" | "d5803" in aosp (called z3c in cm12.1)
  715.     # Z2 is also called "d6503" in aosp (called sirius in cm12.1)
  716.     # untested for "amami" | "leo" | "tianchi")
  717.         sed -i \
  718.             -e 's block/platform/msm_sdcc.1/by-name/DDR mmcblk0p17 ' \
  719.             -e 's block/platform/msm_sdcc.1/by-name/FOTAKernel mmcblk0p16 ' \
  720.             -e 's block/platform/msm_sdcc.1/by-name/LTALabel mmcblk0p18 ' \
  721.             -e 's block/platform/msm_sdcc.1/by-name/TA mmcblk0p1 ' \
  722.             -e 's block/platform/msm_sdcc.1/by-name/aboot mmcblk0p5 ' \
  723.             -e 's block/platform/msm_sdcc.1/by-name/alt_aboot mmcblk0p11 ' \
  724.             -e 's block/platform/msm_sdcc.1/by-name/alt_dbi mmcblk0p10 ' \
  725.             -e 's block/platform/msm_sdcc.1/by-name/alt_rpm mmcblk0p12 ' \
  726.             -e 's block/platform/msm_sdcc.1/by-name/alt_s1sbl mmcblk0p9 ' \
  727.             -e 's block/platform/msm_sdcc.1/by-name/alt_sbl1 mmcblk0p8 ' \
  728.             -e 's block/platform/msm_sdcc.1/by-name/alt_tz mmcblk0p13 ' \
  729.             -e 's block/platform/msm_sdcc.1/by-name/apps_log mmcblk0p22 ' \
  730.             -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p14 ' \
  731.             -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p24 ' \
  732.             -e 's block/platform/msm_sdcc.1/by-name/dbi mmcblk0p4 ' \
  733.             -e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p21 ' \
  734.             -e 's block/platform/msm_sdcc.1/by-name/modemst1 mmcblk0p19 ' \
  735.             -e 's block/platform/msm_sdcc.1/by-name/modemst2 mmcblk0p20 ' \
  736.             -e 's block/platform/msm_sdcc.1/by-name/ramdump mmcblk0p15 ' \
  737.             -e 's block/platform/msm_sdcc.1/by-name/rpm mmcblk0p6 ' \
  738.             -e 's block/platform/msm_sdcc.1/by-name/s1sbl mmcblk0p3 ' \
  739.             -e 's block/platform/msm_sdcc.1/by-name/sbl1 mmcblk0p2 ' \
  740.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p23 ' \
  741.             -e 's block/platform/msm_sdcc.1/by-name/tz mmcblk0p7 ' \
  742.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p25 ' \
  743.             "$@"
  744.         ;;
  745.  
  746.     "kis3")
  747.         sed -i \
  748.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p12 ' \
  749.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p13 ' \
  750.             -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p15 ' \
  751.             -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p7 ' \
  752.             -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p16 ' \
  753.             -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \
  754.             -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p14 ' \
  755.             "$@"
  756.         ;;
  757.  
  758.     "m7spr")
  759.         sed -i \
  760.             -e 's block/platform/msm_sdcc.1/by-name/adsp mmcblk0p16 ' \
  761.             -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p35 ' \
  762.             -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p38 ' \
  763.             -e 's block/platform/msm_sdcc.1/by-name/carrier mmcblk0p30 ' \
  764.             -e 's block/platform/msm_sdcc.1/by-name/cdma_record mmcblk0p28 ' \
  765.             -e 's block/platform/msm_sdcc.1/by-name/control mmcblk0p25 ' \
  766.             -e 's block/platform/msm_sdcc.1/by-name/devlog mmcblk0p22 ' \
  767.             -e 's block/platform/msm_sdcc.1/by-name/dsps mmcblk0p15 ' \
  768.             -e 's block/platform/msm_sdcc.1/by-name/extra mmcblk0p27 ' \
  769.             -e 's block/platform/msm_sdcc.1/by-name/local mmcblk0p26 ' \
  770.             -e 's block/platform/msm_sdcc.1/by-name/misc mmcblk0p19 ' \
  771.             -e 's block/platform/msm_sdcc.1/by-name/modem_st1 mmcblk0p20 ' \
  772.             -e 's block/platform/msm_sdcc.1/by-name/modem_st2 mmcblk0p21 ' \
  773.             -e 's block/platform/msm_sdcc.1/by-name/pdata mmcblk0p24 ' \
  774.             -e 's block/platform/msm_sdcc.1/by-name/radio mmcblk0p33 ' \
  775.             -e 's block/platform/msm_sdcc.1/by-name/radio_config mmcblk0p17 ' \
  776.             -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p36 ' \
  777.             -e 's block/platform/msm_sdcc.1/by-name/reserve mmcblk0p31 ' \
  778.             -e 's block/platform/msm_sdcc.1/by-name/reserve_1 mmcblk0p18 ' \
  779.             -e 's block/platform/msm_sdcc.1/by-name/reserve_2 mmcblk0p32 ' \
  780.             -e 's block/platform/msm_sdcc.1/by-name/reserve_3 mmcblk0p34 ' \
  781.             -e 's block/platform/msm_sdcc.1/by-name/skylink mmcblk0p29 ' \
  782.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p37 ' \
  783.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p39 ' \
  784.             "$@"
  785.         ;;
  786.  
  787.     "t6")
  788.         sed -i \
  789.             -e 's block/platform/msm_sdcc.1/by-name/adsp mmcblk0p16 ' \
  790.             -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p37 ' \
  791.             -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p41 ' \
  792.             -e 's block/platform/msm_sdcc.1/by-name/carrier mmcblk0p32 ' \
  793.             -e 's block/platform/msm_sdcc.1/by-name/cdma_record mmcblk0p30 ' \
  794.             -e 's block/platform/msm_sdcc.1/by-name/control mmcblk0p27 ' \
  795.             -e 's block/platform/msm_sdcc.1/by-name/devlog mmcblk0p24 ' \
  796.             -e 's block/platform/msm_sdcc.1/by-name/dsps mmcblk0p15 ' \
  797.             -e 's block/platform/msm_sdcc.1/by-name/extra mmcblk0p29 ' \
  798.             -e 's block/platform/msm_sdcc.1/by-name/local mmcblk0p28 ' \
  799.             -e 's block/platform/msm_sdcc.1/by-name/misc mmcblk0p21 ' \
  800.             -e 's block/platform/msm_sdcc.1/by-name/modem_st1 mmcblk0p22 ' \
  801.             -e 's block/platform/msm_sdcc.1/by-name/modem_st2 mmcblk0p23 ' \
  802.             -e 's block/platform/msm_sdcc.1/by-name/pdata mmcblk0p26 ' \
  803.             -e 's block/platform/msm_sdcc.1/by-name/radio mmcblk0p34 ' \
  804.             -e 's block/platform/msm_sdcc.1/by-name/radio_config mmcblk0p17 ' \
  805.             -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p38 ' \
  806.             -e 's block/platform/msm_sdcc.1/by-name/reserve mmcblk0p33 ' \
  807.             -e 's block/platform/msm_sdcc.1/by-name/reserve_1 mmcblk0p20 ' \
  808.             -e 's block/platform/msm_sdcc.1/by-name/reserve_2 mmcblk0p35 ' \
  809.             -e 's block/platform/msm_sdcc.1/by-name/reserve_3 mmcblk0p36 ' \
  810.             -e 's block/platform/msm_sdcc.1/by-name/reserve_4 mmcblk0p40 ' \
  811.             -e 's block/platform/msm_sdcc.1/by-name/skylink mmcblk0p31 ' \
  812.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p39 ' \
  813.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p42 ' \
  814.             -e 's block/platform/msm_sdcc.1/by-name/wcnss mmcblk0p18 ' \
  815.             "$@"
  816.         ;;
  817.  
  818.     "wt88047")
  819.         sed -i \
  820.             -e 's block/bootdevice/by-name/userdata mmcblk0p30 ' \
  821.             -e 's block/bootdevice/by-name/boot mmcblk0p22 ' \
  822.             -e 's block/bootdevice/by-name/system mmcblk0p23 ' \
  823.             -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \
  824.             -e 's block/bootdevice/by-name/modemst1 mmcblk0p13 ' \
  825.             -e 's block/bootdevice/by-name/modemst2 mmcblk0p14 ' \
  826.             -e 's block/bootdevice/by-name/persist mmcblk0p25 ' \
  827.             "$@"
  828.         ;;
  829.  
  830.     "find5")
  831.        sed -i \
  832.             -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \
  833.             -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p21 ' \
  834.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p19 ' \
  835.             -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p18 ' \
  836.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p20 ' \
  837.             "$@"
  838.         ;;
  839.  
  840.     "cancro")
  841.        sed -i \
  842.             -e 's block/platform/msm_sdcc.1/by-name/DDR mmcblk0p4 ' \
  843.             -e 's block/platform/msm_sdcc.1/by-name/aboot mmcblk0p7 ' \
  844.             -e 's block/platform/msm_sdcc.1/by-name/bk1 mmcblk0p8 ' \
  845.             -e 's block/platform/msm_sdcc.1/by-name/bk2 mmcblk0p11 ' \
  846.             -e 's block/platform/msm_sdcc.1/by-name/bk3 mmcblk0p15 ' \
  847.             -e 's block/platform/msm_sdcc.1/by-name/bk4 mmcblk0p17 ' \
  848.             -e 's block/platform/msm_sdcc.1/by-name/bk5 mmcblk0p18 ' \
  849.             -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p19 ' \
  850.             -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p24 ' \
  851.             -e 's block/platform/msm_sdcc.1/by-name/dbi mmcblk0p6 ' \
  852.             -e 's block/platform/msm_sdcc.1/by-name/fsc mmcblk0p14 ' \
  853.             -e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p16 ' \
  854.             -e 's block/platform/msm_sdcc.1/by-name/logo mmcblk0p10 ' \
  855.             -e 's block/platform/msm_sdcc.1/by-name/misc mmcblk0p9 ' \
  856.             -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p22 ' \
  857.             -e 's block/platform/msm_sdcc.1/by-name/modemst1 mmcblk0p12 ' \
  858.             -e 's block/platform/msm_sdcc.1/by-name/modemst2 mmcblk0p13 ' \
  859.             -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p21 ' \
  860.             -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p20 ' \
  861.             -e 's block/platform/msm_sdcc.1/by-name/rpm mmcblk0p2 ' \
  862.             -e 's block/platform/msm_sdcc.1/by-name/sbl1 mmcblk0p1 ' \
  863.             -e 's block/platform/msm_sdcc.1/by-name/ssd mmcblk0p5 ' \
  864.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p23 ' \
  865.             -e 's block/platform/msm_sdcc.1/by-name/tz mmcblk0p3 ' \
  866.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p25 ' \
  867.             "$@"
  868.         ;;
  869.  
  870.     "gemini")
  871.        sed -i \
  872.             -e 's block/bootdevice/by-name/aboot sde23 ' \
  873.             -e 's block/bootdevice/by-name/abootbak sde24 ' \
  874.             -e 's block/bootdevice/by-name/apdp sde5 ' \
  875.             -e 's block/bootdevice/by-name/bk1 sda3 ' \
  876.             -e 's block/bootdevice/by-name/bk10 sdf2 ' \
  877.             -e 's block/bootdevice/by-name/bk11 sdf4 ' \
  878.             -e 's block/bootdevice/by-name/bk12 sdf6 ' \
  879.             -e 's block/bootdevice/by-name/bk2 sda8 ' \
  880.             -e 's block/bootdevice/by-name/bk3 sda10 ' \
  881.             -e 's block/bootdevice/by-name/bk4 sdd2 ' \
  882.             -e 's block/bootdevice/by-name/bk5 sdd5 ' \
  883.             -e 's block/bootdevice/by-name/bk6 sde4 ' \
  884.             -e 's block/bootdevice/by-name/bk7 sde29 ' \
  885.             -e 's block/bootdevice/by-name/bk8 sde30 ' \
  886.             -e 's block/bootdevice/by-name/bk9 sde40 ' \
  887.             -e 's block/bootdevice/by-name/bluetooth sde26 ' \
  888.             -e 's block/bootdevice/by-name/boot sde36 ' \
  889.             -e 's block/bootdevice/by-name/cache sda13 ' \
  890.             -e 's block/bootdevice/by-name/cdt sdd3 ' \
  891.             -e 's block/bootdevice/by-name/cmnlib sde19 ' \
  892.             -e 's block/bootdevice/by-name/cmnlib64 sde21 ' \
  893.             -e 's block/bootdevice/by-name/cmnlib64bak sde22 ' \
  894.             -e 's block/bootdevice/by-name/cmnlibbak sde20 ' \
  895.             -e 's block/bootdevice/by-name/cust sde38 ' \
  896.             -e 's block/bootdevice/by-name/ddr sdd4 ' \
  897.             -e 's block/bootdevice/by-name/devcfg sda4 ' \
  898.             -e 's block/bootdevice/by-name/devcfgbak sda5 ' \
  899.             -e 's block/bootdevice/by-name/devinfo sde1 ' \
  900.             -e 's block/bootdevice/by-name/dip sde25 ' \
  901.             -e 's block/bootdevice/by-name/dpo sde2 ' \
  902.             -e 's block/bootdevice/by-name/dsp sde32 ' \
  903.             -e 's block/bootdevice/by-name/frp sda7 ' \
  904.             -e 's block/bootdevice/by-name/fsc sdf1 ' \
  905.             -e 's block/bootdevice/by-name/fsg sde28 ' \
  906.             -e 's block/bootdevice/by-name/hyp sde13 ' \
  907.             -e 's block/bootdevice/by-name/hypbak sde14 ' \
  908.             -e 's block/bootdevice/by-name/keymaster sde17 ' \
  909.             -e 's block/bootdevice/by-name/keymasterbak sde18 ' \
  910.             -e 's block/bootdevice/by-name/keystore sda6 ' \
  911.             -e 's block/bootdevice/by-name/lksecapp sde7 ' \
  912.             -e 's block/bootdevice/by-name/lksecappbak sde8 ' \
  913.             -e 's block/bootdevice/by-name/logo sde31 ' \
  914.             -e 's block/bootdevice/by-name/mdtp sde34 ' \
  915.             -e 's block/bootdevice/by-name/misc sda9 ' \
  916.             -e 's block/bootdevice/by-name/modem sde35 ' \
  917.             -e 's block/bootdevice/by-name/modemst1 sdf3 ' \
  918.             -e 's block/bootdevice/by-name/modemst2 sdf5 ' \
  919.             -e 's block/bootdevice/by-name/msadp sde6 ' \
  920.             -e 's block/bootdevice/by-name/oops sda11 ' \
  921.             -e 's block/bootdevice/by-name/persist sda12 ' \
  922.             -e 's block/bootdevice/by-name/pmic sde9 ' \
  923.             -e 's block/bootdevice/by-name/pmicbak sde10 ' \
  924.             -e 's block/bootdevice/by-name/recovery sde37 ' \
  925.             -e 's block/bootdevice/by-name/reserve sdd1 ' \
  926.             -e 's block/bootdevice/by-name/rpm sde11 ' \
  927.             -e 's block/bootdevice/by-name/rpmbak sde12 ' \
  928.             -e 's block/bootdevice/by-name/sec sde3 ' \
  929.             -e 's block/bootdevice/by-name/splash sde33 ' \
  930.             -e 's block/bootdevice/by-name/ssd sda1 ' \
  931.             -e 's block/bootdevice/by-name/sti sde27 ' \
  932.             -e 's block/bootdevice/by-name/switch sda2 ' \
  933.             -e 's block/bootdevice/by-name/system sde39 ' \
  934.             -e 's block/bootdevice/by-name/tz sde15 ' \
  935.             -e 's block/bootdevice/by-name/tzbak sde16 ' \
  936.             -e 's block/bootdevice/by-name/userdata sda14 ' \
  937.             -e 's block/bootdevice/by-name/xbl sdb1 ' \
  938.             -e 's block/bootdevice/by-name/xblbak sdc1 ' \
  939.             "$@"
  940.         ;;
  941.  
  942.     "gts210ltexx"|"gts210wifi")
  943.         sed -i \
  944.             -e 's block/platform/15540000.dwmmc0/by-name/BOOT mmcblk0p9 ' \
  945.             -e 's block/platform/15540000.dwmmc0/by-name/CACHE mmcblk0p20 ' \
  946.             -e 's block/platform/15540000.dwmmc0/by-name/EFS mmcblk0p3 ' \
  947.             -e 's block/platform/15540000.dwmmc0/by-name/SYSTEM mmcblk0p19 ' \
  948.             -e 's block/platform/15540000.dwmmc0/by-name/USERDATA mmcblk0p22 ' \
  949.             "$@"
  950.         ;;
  951.  
  952.     "kenzo")
  953.         sed -i \
  954.             -e 's block/bootdevice/by-name/DDR mmcblk0p15 ' \
  955.             -e 's block/bootdevice/by-name/aboot mmcblk0p19 ' \
  956.             -e 's block/bootdevice/by-name/abootbak mmcblk0p20 ' \
  957.             -e 's block/bootdevice/by-name/apdp mmcblk0p43 ' \
  958.             -e 's block/bootdevice/by-name/boot mmcblk0p21 ' \
  959.             -e 's block/bootdevice/by-name/cache mmcblk0p25 ' \
  960.             -e 's block/bootdevice/by-name/cmnlib mmcblk0p39 ' \
  961.             -e 's block/bootdevice/by-name/cmnlibbak mmcblk0p41 ' \
  962.             -e 's block/bootdevice/by-name/config mmcblk0p29 ' \
  963.             -e 's block/bootdevice/by-name/cust mmcblk0p36 ' \
  964.             -e 's block/bootdevice/by-name/devcfg mmcblk0p33 ' \
  965.             -e 's block/bootdevice/by-name/devinfo mmcblk0p23 ' \
  966.             -e 's block/bootdevice/by-name/dip mmcblk0p34 ' \
  967.             -e 's block/bootdevice/by-name/dpo mmcblk0p45 ' \
  968.             -e 's block/bootdevice/by-name/dsp mmcblk0p12 ' \
  969.             -e 's block/bootdevice/by-name/fsc mmcblk0p2 ' \
  970.             -e 's block/bootdevice/by-name/fsg mmcblk0p16 ' \
  971.             -e 's block/bootdevice/by-name/hyp mmcblk0p10 ' \
  972.             -e 's block/bootdevice/by-name/hypbak mmcblk0p11 ' \
  973.             -e 's block/bootdevice/by-name/keymaster mmcblk0p40 ' \
  974.             -e 's block/bootdevice/by-name/keymasterbak mmcblk0p42 ' \
  975.             -e 's block/bootdevice/by-name/keystore mmcblk0p28 ' \
  976.             -e 's block/bootdevice/by-name/limits mmcblk0p31 ' \
  977.             -e 's block/bootdevice/by-name/mcfg mmcblk0p38 ' \
  978.             -e 's block/bootdevice/by-name/mdtp mmcblk0p35 ' \
  979.             -e 's block/bootdevice/by-name/misc mmcblk0p27 ' \
  980.             -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \
  981.             -e 's block/bootdevice/by-name/modemst1 mmcblk0p13 ' \
  982.             -e 's block/bootdevice/by-name/modemst2 mmcblk0p14 ' \
  983.             -e 's block/bootdevice/by-name/mota mmcblk0p32 ' \
  984.             -e 's block/bootdevice/by-name/msadp mmcblk0p44 ' \
  985.             -e 's block/bootdevice/by-name/oem mmcblk0p30 ' \
  986.             -e 's block/bootdevice/by-name/persist mmcblk0p26 ' \
  987.             -e 's block/bootdevice/by-name/recovery mmcblk0p22 ' \
  988.             -e 's block/bootdevice/by-name/rpm mmcblk0p6 ' \
  989.             -e 's block/bootdevice/by-name/rpmbak mmcblk0p7 ' \
  990.             -e 's block/bootdevice/by-name/sbl1 mmcblk0p4 ' \
  991.             -e 's block/bootdevice/by-name/sbl1bak mmcblk0p5 ' \
  992.             -e 's block/bootdevice/by-name/sec mmcblk0p17 ' \
  993.             -e 's block/bootdevice/by-name/splash mmcblk0p18 ' \
  994.             -e 's block/bootdevice/by-name/ssd mmcblk0p3 ' \
  995.             -e 's block/bootdevice/by-name/syscfg mmcblk0p37 ' \
  996.             -e 's block/bootdevice/by-name/system mmcblk0p24 ' \
  997.             -e 's block/bootdevice/by-name/tz mmcblk0p8 ' \
  998.             -e 's block/bootdevice/by-name/tzbak mmcblk0p9 ' \
  999.             -e 's block/bootdevice/by-name/userdata mmcblk0p46 ' \
  1000.             "$@"
  1001.         ;;
  1002.  
  1003.     "armani")
  1004.         sed -i \
  1005.             -e 's block/platform/msm_sdcc.1/by-name/aboot mmcblk0p10 ' \
  1006.             -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p24 ' \
  1007.             -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p28 ' \
  1008.             -e 's block/platform/msm_sdcc.1/by-name/misc mmcblk0p13 ' \
  1009.             -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p23 ' \
  1010.             -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p26 ' \
  1011.             -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p25 ' \
  1012.             -e 's block/platform/msm_sdcc.1/by-name/rpm mmcblk0p3 ' \
  1013.             -e 's block/platform/msm_sdcc.1/by-name/sbl1 mmcblk0p1 ' \
  1014.             -e 's block/platform/msm_sdcc.1/by-name/sdi mmcblk0p8 ' \
  1015.             -e 's block/platform/msm_sdcc.1/by-name/ssd mmcblk0p7 ' \
  1016.             -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p27 ' \
  1017.             -e 's block/platform/msm_sdcc.1/by-name/tz mmcblk0p5 ' \
  1018.             -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p29 ' \
  1019.             "$@"
  1020.         ;;
  1021.  
  1022.     "ham")
  1023.         sed -i \
  1024.             -e 's block/bootdevice/by-name/boot mmcblk0p9 ' \
  1025.             -e 's block/bootdevice/by-name/cache mmcblk0p21 ' \
  1026.             -e 's block/bootdevice/by-name/dbi mmcblk0p3 ' \
  1027.             -e 's block/bootdevice/by-name/frp mmcblk0p13 ' \
  1028.             -e 's block/bootdevice/by-name/fsc mmcblk0p6 ' \
  1029.             -e 's block/bootdevice/by-name/misc mmcblk0p20 ' \
  1030.             -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \
  1031.             -e 's block/bootdevice/by-name/modemst1 mmcblk0p16 ' \
  1032.             -e 's block/bootdevice/by-name/modemst2 mmcblk0p17 ' \
  1033.             -e 's block/bootdevice/by-name/mrd mmcblk0p12 ' \
  1034.             -e 's block/bootdevice/by-name/pad mmcblk0p15 ' \
  1035.             -e 's block/bootdevice/by-name/persist mmcblk0p19 ' \
  1036.             -e 's block/bootdevice/by-name/recovery mmcblk0p10 ' \
  1037.             -e 's block/bootdevice/by-name/rpm mmcblk0p4 ' \
  1038.             -e 's block/bootdevice/by-name/sbl1 mmcblk0p2 ' \
  1039.             -e 's block/bootdevice/by-name/splash mmcblk0p11 ' \
  1040.             -e 's block/bootdevice/by-name/ssd mmcblk0p7 ' \
  1041.             -e 's block/bootdevice/by-name/system mmcblk0p22 ' \
  1042.             -e 's block/bootdevice/by-name/userdata mmcblk0p23 ' \
  1043.             "$@"
  1044.         ;;
  1045.  
  1046.     "oneplus3")
  1047.         sed -i \
  1048.             -e 's block/bootdevice/by-name/LOGO sde17 ' \
  1049.             -e 's block/bootdevice/by-name/aboot sde15 ' \
  1050.             -e 's block/bootdevice/by-name/abootbak sde16 ' \
  1051.             -e 's block/bootdevice/by-name/apdp sde30 ' \
  1052.             -e 's block/bootdevice/by-name/bluetooth sde23 ' \
  1053.             -e 's block/bootdevice/by-name/boot sde18 ' \
  1054.             -e 's block/bootdevice/by-name/boot_aging sde19 ' \
  1055.             -e 's block/bootdevice/by-name/cache sda3 ' \
  1056.             -e 's block/bootdevice/by-name/cdt sdd2 ' \
  1057.             -e 's block/bootdevice/by-name/cmnlib sde26 ' \
  1058.             -e 's block/bootdevice/by-name/cmnlib64 sde28 ' \
  1059.             -e 's block/bootdevice/by-name/cmnlib64bak sde29 ' \
  1060.             -e 's block/bootdevice/by-name/cmnlibbak sde27 ' \
  1061.             -e 's block/bootdevice/by-name/config sda14 ' \
  1062.             -e 's block/bootdevice/by-name/ddr sdd3 ' \
  1063.             -e 's block/bootdevice/by-name/devcfg sda6 ' \
  1064.             -e 's block/bootdevice/by-name/devcfgbak sda7 ' \
  1065.             -e 's block/bootdevice/by-name/devinfo sde22 ' \
  1066.             -e 's block/bootdevice/by-name/dip sde13 ' \
  1067.             -e 's block/bootdevice/by-name/dpo sde32 ' \
  1068.             -e 's block/bootdevice/by-name/dsp sde12 ' \
  1069.             -e 's block/bootdevice/by-name/frp sda8 ' \
  1070.             -e 's block/bootdevice/by-name/fsc sdf3 ' \
  1071.             -e 's block/bootdevice/by-name/fsg sde7 ' \
  1072.             -e 's block/bootdevice/by-name/hyp sde5 ' \
  1073.             -e 's block/bootdevice/by-name/hypbak sde6 ' \
  1074.             -e 's block/bootdevice/by-name/keymaster sde24 ' \
  1075.             -e 's block/bootdevice/by-name/keymasterbak sde25 ' \
  1076.             -e 's block/bootdevice/by-name/keystore sda5 ' \
  1077.             -e 's block/bootdevice/by-name/md5 sdf4 ' \
  1078.             -e 's block/bootdevice/by-name/mdtp sde14 ' \
  1079.             -e 's block/bootdevice/by-name/misc sda4 ' \
  1080.             -e 's block/bootdevice/by-name/modem sde11 ' \
  1081.             -e 's block/bootdevice/by-name/modemst1 sdf1 ' \
  1082.             -e 's block/bootdevice/by-name/modemst2 sdf2 ' \
  1083.             -e 's block/bootdevice/by-name/msadp sde31 ' \
  1084.             -e 's block/bootdevice/by-name/oem_dycnvbk sda9 ' \
  1085.             -e 's block/bootdevice/by-name/oem_stanvbk sda10 ' \
  1086.             -e 's block/bootdevice/by-name/param sda11 ' \
  1087.             -e 's block/bootdevice/by-name/persist sda2 ' \
  1088.             -e 's block/bootdevice/by-name/pmic sde9 ' \
  1089.             -e 's block/bootdevice/by-name/pmicbak sde10 ' \
  1090.             -e 's block/bootdevice/by-name/recovery sde21 ' \
  1091.             -e 's block/bootdevice/by-name/reserve sdd1 ' \
  1092.             -e 's block/bootdevice/by-name/reserve1 sda12 ' \
  1093.             -e 's block/bootdevice/by-name/reserve2 sda13 ' \
  1094.             -e 's block/bootdevice/by-name/rpm sde1 ' \
  1095.             -e 's block/bootdevice/by-name/rpmbak sde2 ' \
  1096.             -e 's block/bootdevice/by-name/sec sde8 ' \
  1097.             -e 's block/bootdevice/by-name/splash sde33 ' \
  1098.             -e 's block/bootdevice/by-name/ssd sda1 ' \
  1099.             -e 's block/bootdevice/by-name/sti sde34 ' \
  1100.             -e 's block/bootdevice/by-name/system sde20 ' \
  1101.             -e 's block/bootdevice/by-name/tz sde3 ' \
  1102.             -e 's block/bootdevice/by-name/tzbak sde4 ' \
  1103.             -e 's block/bootdevice/by-name/userdata sda15 ' \
  1104.             -e 's block/bootdevice/by-name/xbl sdb1 ' \
  1105.             -e 's block/bootdevice/by-name/xblbak sdc1 ' \
  1106.             "$@"
  1107.         ;;
  1108.  
  1109.     "addison")
  1110.         sed -i \
  1111.             -e 's block/bootdevice/by-name/boot mmcblk0p37 ' \
  1112.             -e 's block/bootdevice/by-name/cache mmcblk0p52 ' \
  1113.             -e 's block/bootdevice/by-name/dsp mmcblk0p22 ' \
  1114.             -e 's block/bootdevice/by-name/fsg mmcblk0p29 ' \
  1115.             -e 's block/bootdevice/by-name/modem mmcblk0p19 ' \
  1116.             -e 's block/bootdevice/by-name/persist mmcblk0p30 ' \
  1117.             -e 's block/bootdevice/by-name/recovery mmcblk0p38 ' \
  1118.             -e 's block/bootdevice/by-name/system mmcblk0p53 ' \
  1119.             -e 's block/bootdevice/by-name/userdata mmcblk0p54 ' \
  1120.             "$@"
  1121.         ;;
  1122.  
  1123.     "mido")
  1124.         sed -i \
  1125.             -e 's block/bootdevice/by-name/boot mmcblk0p21 ' \
  1126.             -e 's block/bootdevice/by-name/cache mmcblk0p25 ' \
  1127.             -e 's block/bootdevice/by-name/config mmcblk0p29 ' \
  1128.             -e 's block/bootdevice/by-name/dsp mmcblk0p12 ' \
  1129.             -e 's block/bootdevice/by-name/fsc mmcblk0p2 ' \
  1130.             -e 's block/bootdevice/by-name/misc mmcblk0p27 ' \
  1131.             -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \
  1132.             -e 's block/bootdevice/by-name/modemst1 mmcblk0p13 ' \
  1133.             -e 's block/bootdevice/by-name/modemst2 mmcblk0p14 ' \
  1134.             -e 's block/bootdevice/by-name/persist mmcblk0p26 ' \
  1135.             -e 's block/bootdevice/by-name/recovery mmcblk0p22 ' \
  1136.             -e 's block/bootdevice/by-name/rpm mmcblk0p6 ' \
  1137.             -e 's block/bootdevice/by-name/sbl1 mmcblk0p4 ' \
  1138.             -e 's block/bootdevice/by-name/splash mmcblk0p18 ' \
  1139.             -e 's block/bootdevice/by-name/ssd mmcblk0p3 ' \
  1140.             -e 's block/bootdevice/by-name/system mmcblk0p24 ' \
  1141.             -e 's block/bootdevice/by-name/userdata mmcblk0p49 ' \
  1142.             -e 's block/bootdevice/by-name/oem mmcblk0p30 ' \
  1143.             "$@"
  1144.         ;;
  1145.     *)
  1146.         cat <<EOF
  1147.  
  1148. ****************************************************************
  1149. ****************************************************************
  1150. ERROR: $DEVICE does not have mountpoint fixup data - see
  1151.        Sailfish OS HADK for details on how to fix this.
  1152. ****************************************************************
  1153. ****************************************************************
  1154.  
  1155. EOF
  1156.         exit 1
  1157.         ;;
  1158. esac
RAW Paste Data