Permalink
Browse files

Clean old init for recovery, not needed any more. + removed system mo…

…unt.
  • Loading branch information...
1 parent 848d0c4 commit 0da53957306e5ae3aec934290ff618ffc4a74f3e @dorimanx committed Aug 17, 2012
Showing with 2 additions and 124 deletions.
  1. +2 −1 recovery.rc
  2. +0 −122 res/misc/recovery-init/init.smdk4210.rc
  3. +0 −1 sbin/init
View
3 recovery.rc
@@ -21,7 +21,7 @@ on init
mount /tmp /tmp tmpfs
on fs
- mount ext4 /dev/block/mmcblk0p9 /system noatime wait
+# mount ext4 /dev/block/mmcblk0p9 /system noatime wait
# mkdir /efs
# mount ext4 /dev/block/mmcblk0p1 /efs nosuid nodev noatime wait
@@ -72,3 +72,4 @@ on property:service.adb.root=1
write /sys/class/android_usb/android0/enable 0
restart adbd
write /sys/class/android_usb/android0/enable 1
+
View
122 res/misc/recovery-init/init.smdk4210.rc
@@ -1,122 +0,0 @@
-import init.smdk4210.usb.rc
-
-on early-init
- export EXTERNAL_STORAGE /mnt/sdcard
- mkdir /mnt/sdcard 0000 system system
- # for backwards compatibility
- symlink /mnt/sdcard /sdcard
-
-on post-fs-data
- # give system access to wpa_supplicant.conf for backup and restore
- mkdir /data/misc/wifi 0770 wifi wifi
- chmod 0770 /data/misc/wifi
- chmod 0660 /data/misc/wifi/wpa_supplicant.conf
- mkdir /data/misc/wifi/sockets 0770 wifi wifi
- mkdir /data/misc/dhcp 0770 dhcp dhcp
- chown dhcp dhcp /data/misc/dhcp
-
-on boot
- chown system system /sys/class/backlight/pwm-backlight/brightness
- chmod 0660 /sys/class/backlight/pwm-backlight/brightness
- chown radio system /sys/devices/virtual/misc/melfas_touchkey/brightness
- chmod 0660 /sys/devices/virtual/misc/melfas_touchkey/brightness
-
-#panorama directory creation
- mkdir /data/pxtmpdir 0775
- chown system system /data/pxtmpdir
- chmod 0775 /data/pxtmpdir
-
-# Permissions for dvfs lock
- chown system system /sys/power/cpufreq_max_limit
- chown system system /sys/power/cpufreq_min_limit
- chmod 0660 /sys/power/cpufreq_max_limit
- chmod 0660 /sys/power/cpufreq_min_limit
-
- chown system system /sys/power/gpu_lock
- chmod 0660 /sys/power/gpu_lock
-
- mount debugfs /sys/kernel/debug /sys/kernel/debug
-
- setprop ro.build.product GT-I9100
- setprop ro.product.device GT-I9100
- setprop ro.radio.noril yes
-
-# Permisions for sensors
- chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_selftest
- chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_get_temp
- chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_power_on
- chown radio system /sys/devices/virtual/accelerometer/accelerometer/acc_file
- chown radio system /sys/devices/virtual/sec/gsensorcal/calibration
-
-# permissions for NFC
- setprop ro.nfc.port "I2C"
- chmod 0600 /dev/pn544
- chown nfc nfc /dev/pn544
-
-# Device Encryption by B2B Security Lab.
- setprop ro.crypto.keyfile.userdata /efs/metadata
-
-# fake some battery state
- setprop status.battery.state Slow
- setprop status.battery.level 5
- setprop status.battery.level_raw 50
- setprop status.battery.level_scale 9
-
-service notified_event /system/bin/notified_event
- class main
- user system
- group system
- socket notified_event stream 0660 root system
-
-service tscald /system/bin/tscald /data/data/com.samsung.app.sec_tscal/cal.conf /sys/devices/platform/s3c64xx-ts/set_tscal
- user root
- group root
- oneshot
-
-service wpa_supplicant /system/bin/wpa_supplicant \
- -Dnl80211 -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin
- # we will start as root and wpa_supplicant will switch to user wifi
- # after setting up the capabilities required for WEXT
- # user wifi
- # group wifi inet keystore
- class main
- socket wpa_wlan0 dgram 0660 wifi wifi
- disabled
- oneshot
-
-#for WiFi MFG(TestMode)
-service mfgloader /system/bin/mfgloader
- disabled
- oneshot
-
-service wlandutservice /system/bin/wlandutservice
- user system
- group wifi net_raw net_admin system inet
- disabled
- oneshot
-
-service macloader /system/bin/macloader
- oneshot
-# end of wifi
-
-service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
- class main
- disabled
- oneshot
-
-service dhcpcd_p2p /system/bin/dhcpcd -aABKL
- class main
- disabled
- oneshot
-
-service iprenew_wlan0 /system/bin/dhcpcd -n
- class main
- disabled
- oneshot
-
-service iprenew_p2p /system/bin/dhcpcd -n
- class main
- disabled
- oneshot
-
-
View
1 sbin/init
@@ -13,7 +13,6 @@ if grep -q bootmode=2 /proc/cmdline ; then
echo 0 > /proc/sys/kernel/rom_feature_set
cp /res/images/recovery-icon.png /res/images/icon_clockwork.png
cp -a /recovery.rc /init.rc
- cp /res/misc/recovery-init/init.smdk4210.rc /init.smdk4210.rc
exec /sbin/init.recovery
fi;

0 comments on commit 0da5395

Please sign in to comment.