google-code-export / minicm

Automatically exported from code.google.com/p/minicm
0 stars 0 forks source link

swap won't be enabled by init script 05mountext #581

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. simple reboot
2. or execute with sh /etc/init.d/05mountext
3.

What is the expected output? What do you see instead?
Script tries to use mmcblk?p1 as swap partition

What version of MiniCM you are using? On what device (X10mini, X10minipro,
X8)? Are you using Compcache/Zram? Are you overclocking/undervolting?
x10minipro / mimmi

What app(s) are involved in the problem?
swap, awk

Have you tried rebooting your device?
yes

What is the adb logcat output when the problem accurs (see:
http://wiki.cyanogenmod.com/index.php?title=Logcat)

Please provide any additional information below.

the error is: 
awk seems not to interpret the whole expression...

        #SWAP_PART=`$FDISK /dev/block/mmcblk${MMC_NUM} | awk '/^\// && $5 == 82 {print $1;exit;}'`;

this will fix the problem - I've replaced the boolean condition with a longer 
search pattern:
        SWAP_PART=`$FDISK /dev/block/mmcblk${MMC_NUM} | awk '/^\/.* 82 Linux swap/ {print $1;exit;}'`;

Original issue reported on code.google.com by jo...@netzagentur.at on 23 Jun 2012 at 3:41

GoogleCodeExporter commented 9 years ago
the problem is with MiniCM9-3.0.2

Original comment by jo...@netzagentur.at on 23 Jun 2012 at 3:43