![]() |
2012-05-17
, 13:07
|
Posts: 58 |
Thanked: 43 times |
Joined on Aug 2010
|
#11
|
The Following 2 Users Say Thank You to BertvanDorp For This Useful Post: | ||
![]() |
2012-05-18
, 05:14
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#12
|
A better solution would be to replace swapon -a with the 'swapmicro' script posted somewhere here on TMO, which detects swap partitions on the microsd, and if it is available, uses that and doesnt bother with emmc. Otherwise, if there's no swap on microsd, it simply runs swapon -a.
I'll post my edits to rcS-late when I get back home.
The Following 2 Users Say Thank You to Estel For This Useful Post: | ||
![]() |
2012-05-18
, 05:40
|
Posts: 372 |
Thanked: 61 times |
Joined on Jan 2012
|
#13
|
![]() |
2012-05-18
, 06:22
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#14
|
![]() |
2012-05-18
, 07:14
|
Posts: 372 |
Thanked: 61 times |
Joined on Jan 2012
|
#15
|
![]() |
2012-05-18
, 07:26
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#16
|
![]() |
2012-05-18
, 08:32
|
|
Posts: 234 |
Thanked: 175 times |
Joined on Jun 2010
@ Genova (Italy)
|
#17
|
So, best way, if You're absolutely sure that it's what You want, is to edit /etc/event.d/rcS-late, replacing line:
...withCode:swapon -a
Code:swapon /dev/mmcblk1p2
The Following 2 Users Say Thank You to MaddogG For This Useful Post: | ||
![]() |
2012-05-18
, 09:49
|
Posts: 805 |
Thanked: 1,605 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#18
|
The Following 2 Users Say Thank You to misiak For This Useful Post: | ||
![]() |
2012-05-18
, 13:04
|
Posts: 1,225 |
Thanked: 1,905 times |
Joined on Feb 2011
@ Quezon City, Philippines
|
#19
|
cmp -s $tmp_fstab $fstab || cp $tmp_fstab $fstab rm -f $tmp_fstab if [ $ACT_DEAD -eq 0 ]; then drivelist=$(sfdisk -lndq /dev/mmcblk1) swapmicro=$(echo "$drivelist" -n | grep Id=82 | awk '/mmcblk1/ {print $1}') if [ "$swapmicro" ]; then /sbin/swapon $swapmicro else /sbin/swapon -a fi # Setup lowmem module echo 32768 > /proc/sys/vm/lowmem_deny_watermark_pages echo 98304 > /proc/sys/vm/lowmem_notify_high_pages echo 131072 > /proc/sys/vm/lowmem_notify_low_pages echo 1024 > /proc/sys/vm/lowmem_nr_decay_pages # Exclude some UIDs from memory allocation denial. # 30000 is messagebus, 30001 could be used by Matchbox echo "30000 30001 30002 30003" > /proc/sys/vm/lowmem_allowed_uids fi mount_home && HOME_MOUNTED=1
![]() |
2012-05-18
, 16:50
|
Posts: 1,141 |
Thanked: 781 times |
Joined on Dec 2009
@ Magical Unicorn Land
|
#20
|
The Following 5 Users Say Thank You to stlpaul For This Useful Post: | ||