1 description "late rcS actions"
9 # Generate fstab and mount /home
10 . /etc/default/mount-opts
12 grep '^/.* /home ' /etc/fstab && /bin/mount /home || echo "Failed to mount /home partition."
14 if [ ! -d /home/user ]
16 if [ -d /home/preinstalled ]
18 mv /home/preinstalled /home/user
24 chown -R user:users /home/user
27 # We can safely continue booting now.
28 initctl emit MOUNTS_OK
30 /sbin/swapon -a || echo "Failed to enable paging partition."
33 echo 32768 > /proc/sys/vm/lowmem_deny_watermark_pages
34 echo 98304 > /proc/sys/vm/lowmem_notify_high_pages
35 echo 131072 > /proc/sys/vm/lowmem_notify_low_pages
36 echo 1024 > /proc/sys/vm/lowmem_nr_decay_pages
38 # Exclude some UIDs from memory allocation denial.
39 # 30000 is messagebus, 30001 could be used by Matchbox
40 echo "30000 30001 30002 30003" > /proc/sys/vm/lowmem_allowed_uids
42 # Adjust flushing of memory card buffers
43 echo 40 > /proc/sys/vm/dirty_ratio
44 echo 10 > /proc/sys/vm/dirty_background_ratio
46 # Initialize PRNG pool with the HW RNG. Slow, but that's ok.
48 if [ -e /dev/hwrng ]; then
49 echo "Seeding entropy pool"
50 dd if=/dev/hwrng of=/dev/urandom bs=$URANDOM_POOLSZ count=1
53 # Data for the panic info driver
54 mount -t debugfs nodev /sys/kernel/debug
55 modprobe panic_info_buff
57 osso-product-info > /sys/kernel/debug/panic_info_buff