Permalink
Browse files

Create writable dbus.conf needed for ril later

  • Loading branch information...
1 parent 6740f55 commit 710f0baf22dd96b9207df9d12240685b05927769 @turl turl committed Aug 2, 2011
Showing with 18 additions and 2 deletions.
  1. +1 −0 init.olympus.rc
  2. +14 −0 moto_fix.sh
  3. +3 −2 olympus.mk
View
@@ -12,6 +12,7 @@ on fs
mount ext4 /dev/block/mmcblk0p16 /data nosuid nodev noatime nodiratime wait barrier=1 noauto_da_alloc
mount ext4 /dev/block/mmcblk0p15 /cache nosuid nodev noatime nodiratime wait barrier=1 noauto_da_alloc
exec /system/bin/logwrapper /system/bin/pds_perm_fix.sh
+ exec /system/bin/logwrapper /system/bin/moto_fix.sh
on post-fs
symlink /system/lib /vendor/lib
View
@@ -0,0 +1,14 @@
+#!/system/bin/sh
+export PATH=/system/xbin:$PATH
+
+if [ ! -f /system/etc/dbus.conf ]
+then
+ busybox touch /data/dbus.conf
+ busybox chmod 777 /data/dbus.conf
+ busybox mount -o remount,rw thing /system
+ busybox ln -s /data/dbus.conf /system/etc/dbus.conf
+ busybox mount -o remount,ro thing /system
+ echo "Created dbus.conf"
+else
+ echo "dbus.conf already exists"
+fi
View
@@ -31,9 +31,10 @@ PRODUCT_COPY_FILES += \
## (2) Also get non-open-source CDMA-specific aspects if available
$(call inherit-product-if-exists, vendor/motorola/olympus/olympus-vendor.mk)
-# motorola pds permission fix script
+# motorola pds & ril permission fix scripts
PRODUCT_COPY_FILES += \
- device/motorola/olympus/pds_perm_fix.sh:system/bin/pds_perm_fix.sh
+ device/motorola/olympus/pds_perm_fix.sh:system/bin/pds_perm_fix.sh \
+ device/motorola/olympus/moto_fix.sh:system/bin/moto_fix.sh
## (3) Finally, the least specific parts, i.e. the non-CDMA-specific aspects

2 comments on commit 710f0ba

Owner

wesgarner replied Aug 2, 2011

why not use /cache for these files?

turl replied Aug 2, 2011

It was reverted anyway. Blame eval- haha. But yes, cache sounds like a good location too.

Please sign in to comment.