[RX51] Enable swap device and mount /boot by default
This enables the existing swap device (set up by Maemo) and sets up /boot to mount on startup
This commit is contained in:
parent
b059298e87
commit
1c3ee97f9f
2 changed files with 11 additions and 1 deletions
|
@ -39,4 +39,4 @@ sha512sums="4efa28cfb35b0ceb783f15fbcf05d7302690d2d767ec7b87578741ccd52988fdc209
|
|||
98c554a709d6e8da5835bd792d833355d830fca1cfea12ec7fe4f41d1d1126389c51a8a392a7f94093473c19263cc6846cc40d7e179c2facf12db2d68ff923f9 90-touchscreen-dev.rules
|
||||
df5dcae9a32d04ba2fed8b4dbb8722f8d56d063a288dfbaeca37806bdbb8ba4de639b392859b9f24040a1032456d5dcd754f51314e3ab66515b91ae1e03c93a7 acpi_handler.sh
|
||||
7761aec6e6e219245b006e7bdc1d19812e9c5915cf3e64bb3dd46bb4b5570c1715650b53a1fc1007cb814076b5d81be0a66ba7ebf06d9a1fa4e364725c3ee633 acpi.map
|
||||
fd148b38a187710c9ed8729b6a5be5fcdb066c08c187cd11a783798fcb5b662e5fbff57c09031964b54c22bab5c0d407732bc9440d23865a77d0081ab5cdffd9 device-nokia-rx51.post-install"
|
||||
8f921d619e917cec799dbf118b0ea355ca0004bae99342892b79893ff179d1133b9b1215f107d7f614b529ec815d2511cd11c233af538aecd67df7d8242a709e device-nokia-rx51.post-install"
|
||||
|
|
|
@ -8,4 +8,14 @@ done
|
|||
# Enable acpid
|
||||
rc-update add acpid default
|
||||
|
||||
# Add /boot mount point in fstab
|
||||
if [ -z "$(grep /boot /etc/fstab)" ]; then
|
||||
echo "/dev/dm-0 /boot ext2 defaults 0 0" >> /etc/fstab
|
||||
fi
|
||||
# Add swap to fstab & enable swap on device startup
|
||||
if [ -z "$(grep /dev/mmcblk1p3 /etc/fstab)" ]; then
|
||||
echo "/dev/mmcblk1p3 none swap defaults 0 0" >> /etc/fstab
|
||||
fi
|
||||
rc-update add swap default
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue