[RX51] misc improvements (#287)

* [RX51] enable hwdrivers service to 'fix' acpid

* [RX51] set rtc device for hwclock service

* [RX51] Enable networking service, add /etc/network/interfaces

* [RX51] Update APKBUILD checksums & pkgrel
This commit is contained in:
clayton craft 2017-08-14 05:19:22 -07:00 committed by Martijn Braam
parent a65e7d034b
commit 2bb305171e
2 changed files with 22 additions and 2 deletions

View file

@ -1,6 +1,6 @@
pkgname=device-nokia-rx51
pkgver=1
pkgrel=11
pkgrel=12
pkgdesc="Nokia N900"
url="https://github.com/postmarketOS"
arch="noarch"
@ -39,4 +39,4 @@ sha512sums="4efa28cfb35b0ceb783f15fbcf05d7302690d2d767ec7b87578741ccd52988fdc209
98c554a709d6e8da5835bd792d833355d830fca1cfea12ec7fe4f41d1d1126389c51a8a392a7f94093473c19263cc6846cc40d7e179c2facf12db2d68ff923f9 90-touchscreen-dev.rules
df5dcae9a32d04ba2fed8b4dbb8722f8d56d063a288dfbaeca37806bdbb8ba4de639b392859b9f24040a1032456d5dcd754f51314e3ab66515b91ae1e03c93a7 acpi_handler.sh
7761aec6e6e219245b006e7bdc1d19812e9c5915cf3e64bb3dd46bb4b5570c1715650b53a1fc1007cb814076b5d81be0a66ba7ebf06d9a1fa4e364725c3ee633 acpi.map
18c2031d24d6d8985fa010fea04db39651be371ce1504241f21ce26611232f8ceae90812f40dae71f211af0c67fe6bdfe43f2ffaf180a2fd915e0ffd8f3aeb28 device-nokia-rx51.post-install"
f5be149afc242543e4683532a703d7451e1b934e6c23363ea3bd38df307ae7cf657ac875cfb36152ad82f2dc056885fae8e65082eb8e3c73bd01ae44ed2224e8 device-nokia-rx51.post-install"

View file

@ -7,6 +7,10 @@ done
# Enable acpid
rc-update add acpid default
# hwdrivers is required for acpid to 'see' all devices
rc-update add hwdrivers boot
# Enable networking service (requires /etc/interfaces, which is configured below)
rc-update add networking default
# Add /boot mount point in fstab
if [ -z "$(grep /boot /etc/fstab)" ]; then
@ -18,4 +22,20 @@ if [ -z "$(grep /dev/mmcblk1p3 /etc/fstab)" ]; then
fi
rc-update add swap default
# Set RTC device for hwclock
if [ -z "$(grep /dev/rtc0 /etc/conf.d/hwclock)" ]; then
sed -i 's/clock_args=\"/clock_args=\" -f \/dev\/rtc/' /etc/conf.d/hwclock
fi
# Create /etc/network/interfaces if this doesn't exist
if [ ! -f /etc/network/interfaces ]; then
cat << EOF >> /etc/network/interfaces
auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet dhcp
EOF
fi
exit 0