|
|
05-17-2012
, 09:07 AM
|
|
Posts: 58 |
Thanked: 41 times |
Joined on Aug 2010
|
#11
|
| The Following 2 Users Say Thank You to BertvanDorp For This Useful Post: | ||
|
|
05-18-2012
, 01:14 AM
|
|
|
Posts: 3,835 |
Thanked: 5,593 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: | ||
|
|
05-18-2012
, 01:40 AM
|
|
Posts: 372 |
Thanked: 58 times |
Joined on Jan 2012
|
#13
|
|
|
05-18-2012
, 02:22 AM
|
|
Posts: 1,641 |
Thanked: 3,533 times |
Joined on Jan 2011
|
#14
|
|
|
05-18-2012
, 03:14 AM
|
|
Posts: 372 |
Thanked: 58 times |
Joined on Jan 2012
|
#15
|
|
|
05-18-2012
, 03:26 AM
|
|
|
Posts: 3,835 |
Thanked: 5,593 times |
Joined on Mar 2011
|
#16
|
| The Following 5 Users Say Thank You to Estel For This Useful Post: | ||
|
|
05-18-2012
, 04:32 AM
|
|
|
Posts: 232 |
Thanked: 167 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: | ||
|
|
05-18-2012
, 05:49 AM
|
|
Posts: 570 |
Thanked: 894 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#18
|
| The Following 2 Users Say Thank You to misiak For This Useful Post: | ||
|
|
05-18-2012
, 09:04 AM
|
|
Posts: 1,111 |
Thanked: 1,489 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
| The Following 8 Users Say Thank You to Hurrian For This Useful Post: | ||
|
|
05-18-2012
, 12:50 PM
|
|
Posts: 1,130 |
Thanked: 754 times |
Joined on Dec 2009
@ Magical Unicorn Land
|
#20
|
| The Following 4 Users Say Thank You to stlpaul For This Useful Post: | ||
![]() |
| Thread Tools | Search this Thread |
|