~ubuntu-branches/ubuntu/saucy/initramfs-tools-ubuntu-touch/saucy-proposed

« back to all changes in this revision

Viewing changes to scripts/touch

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2013-09-05 11:03:01 UTC
  • Revision ID: package-import@ubuntu.com-20130905110301-wtims5iv61pcz9n0
Tags: 0.46
Setup the SWAP device if present.

Show diffs side-by-side

added added

removed removed

Lines of Context:
189
189
                # Bind-mount /lib/modules from Android
190
190
                [ -e ${rootmnt}/android/system/lib/modules ] && mount --bind ${rootmnt}/android/system/lib/modules ${rootmnt}/lib/modules
191
191
 
 
192
                # Setup the swap device
 
193
                [ -e ${rootmnt}/userdata/SWAP.img ] && swapon ${rootmnt}/userdata/SWAP.img
 
194
 
 
195
                # Apply customized content
192
196
                if [ -d ${rootmnt}/custom/home ] && [ ! -e ${rootmnt}/userdata/user-data/phablet/.customized ]; then
193
197
                        echo "initrd: copying custom content" >/dev/kmsg || true
194
198
                        cp -Rap ${rootmnt}/custom/home/* ${rootmnt}/userdata/user-data/phablet