Skip to content
This repository
Browse code

Fixed Wifi and removed extra spaces

  • Loading branch information...
commit 2c20fc745f5a3879478387abaebca3cd424df89f 1 parent 3388912
Bryce Walter authored

Showing 1 changed file with 55 additions and 57 deletions. Show diff stats Hide diff stats

  1. 112  init.encore.rc
112  init.encore.rc
@@ -67,38 +67,35 @@ on post-fs-data
67 67
     mkdir /data/media 0775 media_rw media_rw
68 68
     chown media_rw media_rw /data/media
69 69
     setprop vold.post_fs_data_done 1
  70
+# wi-fi
  71
+    mkdir /data/misc/wifi 0770 wifi wifi
  72
+    mkdir /data/misc/wifi/sockets 0770 wifi wifi
  73
+    mkdir /data/misc/dhcp 0770 dhcp dhcp
  74
+    insmod /system/lib/modules/compat.ko
  75
+    insmod /system/lib/modules/cfg80211.ko
  76
+    insmod /system/lib/modules/mac80211.ko
  77
+    insmod /system/lib/modules/wl12xx.ko debug_level=0x63c0
  78
+
  79
+    mkdir /data/local 0771 shell shell
  80
+    mkdir /data/local/tmp 0771 shell shell
  81
+    mkdir /data/data 0771 system system
  82
+    mkdir /data/app-private 0771 system system
  83
+    mkdir /data/app 0771 system system
  84
+# We chown/chmod /data/app again in case it was created at build-time
  85
+    chown system system /data/app
  86
+    chmod 0771 /data/app
  87
+    mkdir /data/property 0700 root root
  88
+
  89
+# create dalvik-cache and double-check the perms
  90
+    mkdir /data/dalvik-cache 0771 system system
  91
+    chown system system /data/dalvik-cache
  92
+    chmod 0771 /data/dalvik-cache
70 93
 
  94
+    mount debugfs /sys/kernel/debug /sys/kernel/debug
  95
+    chmod 0666 /dev/pvrsrvkm
71 96
 
72  
-
73  
-   # wi-fi
74  
-     mkdir /data/misc/wifi 0770 wifi wifi
75  
-     mkdir /data/misc/wifi/sockets 0770 wifi wifi
76  
-     mkdir /data/misc/dhcp 0770 dhcp dhcp
77  
-     insmod /system/lib/modules/compat.ko
78  
-     insmod /system/lib/modules/cfg80211.ko
79  
-     insmod /system/lib/modules/mac80211.ko
80  
-     insmod /system/lib/modules/wl12xx.ko debug_level=0x63c0
81  
-
82  
-     mkdir /data/local 0771 shell shell
83  
-     mkdir /data/local/tmp 0771 shell shell
84  
-     mkdir /data/data 0771 system system
85  
-     mkdir /data/app-private 0771 system system
86  
-     mkdir /data/app 0771 system system
87  
-     # We chown/chmod /data/app again in case it was created at build-time
88  
-     chown system system /data/app
89  
-     chmod 0771 /data/app
90  
-     mkdir /data/property 0700 root root
91  
-
92  
-   # create dalvik-cache and double-check the perms
93  
-     mkdir /data/dalvik-cache 0771 system system
94  
-     chown system system /data/dalvik-cache
95  
-     chmod 0771 /data/dalvik-cache
96  
-
97  
-     mount debugfs /sys/kernel/debug /sys/kernel/debug
98  
-     chmod 0666 /dev/pvrsrvkm
99  
-
100  
-     # change permissions for bridge.  Symlink search directory
101  
-     chmod 0777 /dev/DspBridge
  97
+# change permissions for bridge.  Symlink search directory
  98
+    chmod 0777 /dev/DspBridge
102 99
 
103 100
 # bluetooth power up/down interface
104 101
     chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
@@ -346,7 +343,7 @@ on boot
346 343
 on property:dev.bootcomplete=1
347 344
     start bootcnt
348 345
 
349  
-  class_start default
  346
+    class_start default
350 347
 
351 348
 service console /system/bin/sh
352 349
     console
@@ -361,22 +358,22 @@ service vold /system/bin/vold
361 358
     socket vold stream 0660 root mount
362 359
 
363 360
 #service mountd /system/bin/mountd
364  
-#    socket mountd stream 0660 root mount
  361
+#   socket mountd stream 0660 root mount
365 362
 
366 363
 service debuggerd /system/bin/debuggerd
367 364
 
368 365
 service hwprops /sbin/hwprops
369  
-        class core
370  
-        critical
371  
-	disabled
372  
-	oneshot
  366
+    class core
  367
+    critical
  368
+	 disabled
  369
+	 oneshot
373 370
 
374 371
 # Initialize the SGX driver
375 372
 service pvrsrvinit /system/bin/pvrsrvinit
376  
-	class core
377  
-	user root
378  
-	group root
379  
-	oneshot
  373
+    class core
  374
+    user root
  375
+    group root
  376
+    oneshot
380 377
 
381 378
 # Start of SGX driver
382 379
 service pvrsrv /system/bin/sh /system/bin/sgx/rc.pvr start
@@ -412,38 +409,39 @@ service bootcnt /system/bin/clear_bootcnt.sh
412 409
 #   group system camera
413 410
 
414 411
 service uim /system/bin/uim-sysfs
415  
-   class core
416  
-   user root
417  
-   group media bluetooth
418  
-   oneshot
  412
+    class core
  413
+    user root
  414
+    group media bluetooth
  415
+    oneshot
419 416
 
420 417
 #service ifcfg_ti /system/bin/netcfg wlan0 up
421  
-#    class main
422  
-#    disabled
423  
-#    oneshot
  418
+#   class main
  419
+#   disabled
  420
+#   oneshot
424 421
 
425 422
 
426  
-service wpa_supplicant /system/bin/wpa_supplicant -Dnl80211 -iwlan0
  423
+service wpa_supplicant /system/bin/wpa_supplicant \
  424
+    -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf -e/data/misc/wifi/entropy.bin
427 425
     class main
428 426
     socket wpa_wlan0 dgram 660 wifi wifi
429 427
     disabled
430 428
     oneshot
431 429
 
432  
-    service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
433  
-       class main
434  
-       disabled
435  
-       oneshot
  430
+service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
  431
+    class main
  432
+    disabled
  433
+    oneshot
436 434
 
437  
-    service iprenew_wlan0 /system/bin/dhcpcd -n
438  
-       class main
439  
-       disabled
440  
-       oneshot
  435
+service iprenew_wlan0 /system/bin/dhcpcd -n
  436
+    class main
  437
+    disabled
  438
+    oneshot
441 439
 
442 440
 # create virtual SD card at /mnt/sdcard, based on the /data/media directory
443 441
 # daemon will drop to user/group system/media_rw after initializing
444 442
 # underlying files in /data/media will be created with user and group media_rw (1023)
445 443
 #service sdcard /system/bin/sdcard /data/media 1023 1023
446  
-#    class late_start
  444
+#   class late_start
447 445
 
448 446
 # load DSP firmware
449 447
 service baseimage /system/bin/dspexec /system/lib/dsp/baseimage.dof

0 notes on commit 2c20fc7

Please sign in to comment.
Something went wrong with that request. Please try again.