goroh_kun

n-04cのinit.rc

Sep 14th, 2011
727
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.86 KB | None | 0 0
  1.  
  2. on emmc
  3.  
  4. mkdir /system
  5. mkdir /data 0771 system system
  6. mkdir /persist 0771 system system
  7. devwait /dev/block/mmcblk0p12
  8. mount ext3 /dev/block/mmcblk0p12 /system ro
  9. devwait /dev/block/mmcblk0p13
  10. exec /system/bin/e2fsck -p /dev/block/mmcblk0p13
  11. mount ext3 /dev/block/mmcblk0p13 /data nosuid nodev
  12. mount ext3 /dev/block/mmcblk0p14 /persist nosuid nodev
  13.  
  14. on nand
  15.  
  16. mkdir /system
  17. mkdir /data 0771 system system
  18. mkdir /persist 0771 system system
  19. mkdir /cache 0770 system cache
  20. # Mount /system rw first to give the filesystem a chance to save a checkpoint
  21. mount yaffs2 mtd@system /system ro
  22. #mount yaffs2 mtd@system /system ro remount
  23. mount yaffs2 mtd@userdata /data nosuid nodev
  24. mount yaffs2 mtd@persist /persist nosuid nodev
  25. mount yaffs2 mtd@cache /cache nosuid nodev
  26.  
  27.  
  28. on init
  29.  
  30. sysclktz 0
  31.  
  32. loglevel 3
  33.  
  34. # setup the global environment
  35. export PATH /sbin:/system/sbin:/system/bin:/system/xbin
  36. export LD_LIBRARY_PATH /system/lib
  37. export ANDROID_BOOTLOGO 1
  38. export ANDROID_ROOT /system
  39. export ANDROID_ASSETS /system/app
  40. export ANDROID_DATA /data
  41. export EXTERNAL_STORAGE /mnt/sdcard
  42. export ASEC_MOUNTPOINT /mnt/asec
  43. export BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar
  44.  
  45. # Memory Guard
  46. exec /system/bin/memguard -d /data
  47.  
  48. # Backward compatibility
  49. symlink /system/etc /etc
  50. symlink /sys/kernel/debug /d
  51.  
  52. # create mountpoints
  53. mkdir /mnt 0775 root system
  54. mkdir /mnt/sdcard 0000 system system
  55.  
  56. # create mountpoints and mount tmpfs on sqlite_stmt_journals
  57. #2010.11.25 DTV_ADD START
  58. mkdir /tmp 01777 root root
  59. mkdir /tmp/dtv 01777 root root
  60. mount tmpfs tmpfs /tmp/dtv nosuid nodev size=400K
  61. #2010.11.25 DTV_ADD END
  62.  
  63. # Create cgroup mount point for cpu accounting
  64. mkdir /acct
  65. mount cgroup none /acct cpuacct
  66. mkdir /acct/uid
  67.  
  68. # Backwards Compat - XXX: Going away in G*
  69. symlink /mnt/sdcard /sdcard
  70.  
  71. mkdir /config 0500 root root
  72.  
  73. # Directory for putting things only root should see.
  74. mkdir /mnt/secure 0700 root root
  75.  
  76. # Directory for staging bindmounts
  77. mkdir /mnt/secure/staging 0700 root root
  78.  
  79. # Directory-target for where the secure container
  80. # imagefile directory will be bind-mounted
  81. mkdir /mnt/secure/asec 0700 root root
  82.  
  83. # Secure container public mount points.
  84. mkdir /mnt/asec 0700 root system
  85. mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000
  86.  
  87. mount rootfs rootfs / ro remount
  88.  
  89. write /proc/sys/kernel/panic_on_oops 1
  90. write /proc/sys/kernel/hung_task_timeout_secs 0
  91. write /proc/cpu/alignment 4
  92. write /proc/sys/kernel/sched_latency_ns 10000000
  93. write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
  94. write /proc/sys/kernel/sched_compat_yield 1
  95. write /proc/sys/kernel/sched_child_runs_first 0
  96.  
  97. # Av0002100 add_start 2010.04.14 kawashima
  98. chmod 0666 /dev/prox_sensor
  99. chmod 0666 /dev/akm8977_pffd
  100. chmod 0666 /dev/akm8977_aot
  101. chmod 0666 /dev/akm8977_daemon
  102. # chmod 0755 /system/bin/ak8977daemon
  103. exec /system/bin/ak8977daemon
  104. # Av0002100 add_end 2010.04.14 kawashima
  105.  
  106. # 2011.01.28 [FBU-HAD-USB] Start
  107. chmod 0666 /dev/usb_diag
  108. # 2011.01.28 [FBU-HAD-USB] End
  109.  
  110. # Av0005200 add_start 2010.05.10 S.Yamamoto
  111. chmod 0666 /dev/thermo_sensor
  112. chmod 0666 /dev/sensors_common
  113. # Av0005200 add_end 2010.05.10 S.Yamamoto
  114.  
  115. # add_start 2010.11.25 S.Yamamoto Q73-CR2-00080
  116. chmod 0666 /dev/light_sensor
  117. # add_end 2010.11.25 S.Yamamoto Q73-CR2-00080
  118.  
  119. # DRVSOUND add_start 2010.09.09 K.Tsunoda
  120. chmod 0666 /dev/nv_reg
  121. # DRVSOUND add_end 2010.09.09 K.Tsunoda
  122.  
  123. # Add for Nx9320 Diag Command Specifications for WLAN Device. 2010.6.17
  124. exec /system/bin/ptt_socket_app
  125.  
  126. # Create cgroup mount points for process groups
  127. mkdir /dev/cpuctl
  128. mount cgroup none /dev/cpuctl cpu
  129. chown system system /dev/cpuctl
  130. chown system system /dev/cpuctl/tasks
  131. chmod 0777 /dev/cpuctl/tasks
  132. write /dev/cpuctl/cpu.shares 1024
  133.  
  134. mkdir /dev/cpuctl/fg_boost
  135. chown system system /dev/cpuctl/fg_boost/tasks
  136. chmod 0777 /dev/cpuctl/fg_boost/tasks
  137. write /dev/cpuctl/fg_boost/cpu.shares 1024
  138.  
  139. mkdir /dev/cpuctl/bg_non_interactive
  140. chown system system /dev/cpuctl/bg_non_interactive/tasks
  141. chmod 0777 /dev/cpuctl/bg_non_interactive/tasks
  142. # 5.0 %
  143. write /dev/cpuctl/bg_non_interactive/cpu.shares 52
  144.  
  145. # mount mtd partitions
  146. # Mounting of system/userdata is moved to 'on emmc' and 'on nand' sections
  147. # We chown/chmod /data again so because mount is run as root + defaults
  148. chown system system /data
  149. chmod 0771 /data
  150.  
  151. # Mounting of persist is moved to 'on emmc' and 'on nand' sections
  152. # We chown/chmod /persist again so because mount is run as root + defaults
  153. chown system system /persist
  154. chmod 0771 /persist
  155.  
  156. # Create dump dir and collect dumps.
  157. # Do this before we mount cache so eventually we can use cache for
  158. # storing dumps on platforms which do not have a dedicated dump partition.
  159.  
  160. mkdir /data/dontpanic
  161. chown root log /data/dontpanic
  162. chmod 0750 /data/dontpanic
  163.  
  164. # Collect apanic data, free resources and re-arm trigger
  165. copy /proc/apanic_console /data/dontpanic/apanic_console
  166. chown root log /data/dontpanic/apanic_console
  167. chmod 0640 /data/dontpanic/apanic_console
  168.  
  169. copy /proc/apanic_threads /data/dontpanic/apanic_threads
  170. chown root log /data/dontpanic/apanic_threads
  171. chmod 0640 /data/dontpanic/apanic_threads
  172.  
  173. write /proc/apanic_console 1
  174.  
  175. # Same reason as /data above
  176. chown system cache /cache
  177. chmod 0770 /cache
  178.  
  179. # This may have been created by the recovery system with odd permissions
  180. chown system cache /cache/recovery
  181. chmod 0770 /cache/recovery
  182.  
  183. # 2010.12.24 [FBU-NES-FOTA] Start
  184. chown system cache /cache/fota
  185. chmod 0771 /cache/fota
  186. # 2010.12.24 [FBU-NES-FOTA] End
  187.  
  188. #change permissions on vmallocinfo so we can grab it from bugreports
  189. chown root log /proc/vmallocinfo
  190. chmod 0440 /proc/vmallocinfo
  191.  
  192. #change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks
  193. chown root system /proc/kmsg
  194. chmod 0440 /proc/kmsg
  195. chown root system /proc/sysrq-trigger
  196. chmod 0220 /proc/sysrq-trigger
  197.  
  198. # create basic filesystem structure
  199. mkdir /data/misc 01771 system misc
  200. mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth
  201. mkdir /data/misc/bluetooth 0770 system system
  202. mkdir /data/misc/keystore 0700 keystore keystore
  203. mkdir /data/misc/vpn 0770 system system
  204. mkdir /data/misc/systemkeys 0700 system system
  205. mkdir /data/misc/vpn/profiles 0770 system system
  206. # give system access to wpa_supplicant.conf for backup and restore
  207. mkdir /data/misc/wifi 0770 wifi wifi
  208. chmod 0770 /data/misc/wifi
  209. chmod 0660 /data/misc/wifi/wpa_supplicant.conf
  210. mkdir /data/local 0771 shell shell
  211. mkdir /data/local/tmp 0771 shell shell
  212. mkdir /data/data 0771 system system
  213. mkdir /data/app-private 0771 system system
  214. mkdir /data/app 0771 system system
  215. mkdir /data/property 0700 root root
  216. mkdir /data/radio 0770 radio radio
  217.  
  218. # create dalvik-cache and double-check the perms
  219. mkdir /data/dalvik-cache 0771 system system
  220. chown system system /data/dalvik-cache
  221. chmod 0771 /data/dalvik-cache
  222.  
  223. # create the lost+found directories, so as to enforce our permissions
  224. mkdir /data/lost+found 0770
  225. mkdir /cache/lost+found 0770
  226.  
  227. # double check the perms, in case lost+found already exists, and set owner
  228. chown root root /data/lost+found
  229. chmod 0770 /data/lost+found
  230. chown root root /cache/lost+found
  231. chmod 0770 /cache/lost+found
  232.  
  233. # Discretix DRM change start
  234. mkdir /data/DxDrm
  235. mkdir /data/DxDrm/fuse
  236. chmod 555 /data/DxDrm
  237. mkdir /sdcard/download
  238. # Discretix DRM change end
  239.  
  240. # 2010.12.24 [FBU-NES-FOTA] Start
  241. mkdir /cache/fota 0771
  242. chown system cache /cache/fota
  243. chmod 0771 /cache/fota
  244. # 2010.12.24 [FBU-NES-FOTA] End
  245.  
  246. on boot
  247. # ADD 2010.12.30 -S-
  248. # disable No SIM Lock
  249. setprop keyguard.no_require_sim 1
  250. # ADD 2010.12.30 -E-
  251.  
  252. # basic network init
  253. ifup lo
  254. hostname localhost
  255. domainname localdomain
  256.  
  257. # set RLIMIT_NICE to allow priorities from 19 to -20
  258. setrlimit 13 40 40
  259.  
  260. # Define the oom_adj values for the classes of processes that can be
  261. # killed by the kernel. These are used in ActivityManagerService.
  262. setprop ro.FOREGROUND_APP_ADJ 0
  263. setprop ro.VISIBLE_APP_ADJ 1
  264. setprop ro.SECONDARY_SERVER_ADJ 2
  265. setprop ro.BACKUP_APP_ADJ 2
  266. setprop ro.HOME_APP_ADJ 4
  267. setprop ro.HIDDEN_APP_MIN_ADJ 7
  268. setprop ro.CONTENT_PROVIDER_ADJ 14
  269. setprop ro.EMPTY_APP_ADJ 15
  270.  
  271. # Define the memory thresholds at which the above process classes will
  272. # be killed. These numbers are in pages (4k).
  273. setprop ro.FOREGROUND_APP_MEM 1536
  274. setprop ro.VISIBLE_APP_MEM 2048
  275. setprop ro.SECONDARY_SERVER_MEM 4096
  276. setprop ro.BACKUP_APP_MEM 4096
  277. setprop ro.HOME_APP_MEM 4096
  278. setprop ro.HIDDEN_APP_MEM 5120
  279. setprop ro.CONTENT_PROVIDER_MEM 5632
  280. setprop ro.EMPTY_APP_MEM 6144
  281.  
  282. # Write value must be consistent with the above properties.
  283. # Note that the driver only supports 6 slots, so we have HOME_APP at the
  284. # same memory level as services.
  285. write /sys/module/lowmemorykiller/parameters/adj 0,1,2,7,14,15
  286.  
  287. write /proc/sys/vm/overcommit_memory 1
  288. write /proc/sys/vm/min_free_order_shift 4
  289. write /sys/module/lowmemorykiller/parameters/minfree 1536,2048,4096,5120,5632,6144
  290.  
  291. # Set init its forked children's oom_adj.
  292. write /proc/1/oom_adj -16
  293.  
  294. # Tweak background writeout
  295. write /proc/sys/vm/dirty_expire_centisecs 200
  296. write /proc/sys/vm/dirty_background_ratio 5
  297.  
  298. # Adjust socket buffer to enlarge TCP receive window for high bandwidth
  299. write /proc/sys/net/ipv4/tcp_adv_win_scale 1
  300.  
  301. # Permissions for System Server and daemons.
  302. chown radio system /sys/android_power/state
  303. chown radio system /sys/android_power/request_state
  304. chown radio system /sys/android_power/acquire_full_wake_lock
  305. chown radio system /sys/android_power/acquire_partial_wake_lock
  306. chown radio system /sys/android_power/release_wake_lock
  307. chown radio system /sys/power/state
  308. chown radio system /sys/power/wake_lock
  309. chown radio system /sys/power/wake_unlock
  310. chmod 0660 /sys/power/state
  311. chmod 0660 /sys/power/wake_lock
  312. chmod 0660 /sys/power/wake_unlock
  313. chown system system /sys/class/timed_output/vibrator/enable
  314. chown system system /sys/class/leds/keyboard-backlight/brightness
  315. chown system system /sys/class/leds/lcd-backlight/brightness
  316. chown system system /sys/class/leds/button-backlight/brightness
  317. chown system system /sys/class/leds/jogball-backlight/brightness
  318. chown system system /sys/class/leds/red/brightness
  319. chown system system /sys/class/leds/green/brightness
  320. chown system system /sys/class/leds/blue/brightness
  321. chown system system /sys/class/leds/red/device/grpfreq
  322. chown system system /sys/class/leds/red/device/grppwm
  323. chown system system /sys/class/leds/red/device/blink
  324. chown system system /sys/class/leds/red/brightness
  325. chown system system /sys/class/leds/green/brightness
  326. chown system system /sys/class/leds/blue/brightness
  327. chown system system /sys/class/leds/red/device/grpfreq
  328. chown system system /sys/class/leds/red/device/grppwm
  329. chown system system /sys/class/leds/red/device/blink
  330. chown system system /sys/class/timed_output/vibrator/enable
  331. chown system system /sys/module/sco/parameters/disable_esco
  332. chown system system /sys/kernel/ipv4/tcp_wmem_min
  333. chown system system /sys/kernel/ipv4/tcp_wmem_def
  334. chown system system /sys/kernel/ipv4/tcp_wmem_max
  335. chown system system /sys/kernel/ipv4/tcp_rmem_min
  336. chown system system /sys/kernel/ipv4/tcp_rmem_def
  337. chown system system /sys/kernel/ipv4/tcp_rmem_max
  338. chown root radio /proc/cmdline
  339.  
  340. chown system system /sys/module/android/parameters/product_id
  341. chown system system /sys/devices/platform/msm_sdcc.1/polling
  342. chown system system /sys/devices/platform/msm_sdcc.2/polling
  343. chown system system /sys/devices/platform/msm_sdcc.3/polling
  344. chown system system /sys/devices/platform/msm_sdcc.4/polling
  345. # 2010.08.19 A.Shibuya MOD_Start : for unrecognizing USB device.
  346. # chown system system /sys/devices/platform/msm_hsusb/gadget/wakeup
  347. chown system system /sys/devices/platform/android_usb/composition
  348. chown system system /sys/devices/platform/android_usb/remote_wakeup
  349. # 2010.08.19 A.Shibuya MOD_End : for unrecognizing USB device.
  350.  
  351. # Define TCP buffer sizes for various networks
  352. # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
  353. setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208
  354. setprop net.tcp.buffersize.wifi 4095,87380,110208,4096,16384,110208
  355. setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208
  356. setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
  357. setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
  358. setprop net.tcp.buffersize.lte 4094,87380,196608,4096,16384,196608
  359. setprop net.tcp.buffersize.evdo_b 4094,87380,262144,4096,16384,262144
  360.  
  361. # 2010.11.29 OFF CHARGE
  362. exec /system/bin/pwoff_charge
  363.  
  364. # Assign TCP buffer thresholds to be ceiling value of technology maximums
  365. # Increased technology maximums should be reflected here.
  366. write /proc/sys/net/core/rmem_max 262144
  367. write /proc/sys/net/core/wmem_max 262144
  368.  
  369. # 2010.12.27 APP-NC-FONT-Etc ADD_Start
  370. setprop ro.config.libemoji libemojiD.so
  371. # 2010.12.27 APP-NC-FONT-Etc ADD_End
  372.  
  373. # Default IME Settings
  374. setprop ro.config.default_ime com.atok.mobile.im.n04c.service/.AtokInputMethodService
  375.  
  376. class_start default
  377.  
  378. ## Daemon processes to be run by init.
  379. ##
  380. service console /system/bin/sh
  381. console
  382.  
  383. # adbd is controlled by the persist.service.adb.enable system property
  384. service adbd /sbin/adbd
  385. disabled
  386.  
  387. # adbd on at boot in emulator
  388. on property:ro.kernel.qemu=1
  389. start adbd
  390.  
  391. on property:persist.service.adb.enable=1
  392. start adbd
  393.  
  394. on property:persist.service.adb.enable=0
  395. stop adbd
  396.  
  397. service servicemanager /system/bin/servicemanager
  398. user system
  399. critical
  400. onrestart restart zygote
  401. onrestart restart media
  402.  
  403. #2010.11.25 DTV_ADD START
  404. onrestart restart dtvserver
  405. onrestart restart dtvsdserver
  406. #2010.11.25 DTV_ADD END
  407.  
  408. service vold /system/bin/vold
  409. socket vold stream 0660 root mount
  410. ioprio be 2
  411.  
  412. #ifdef CONFIG_NCMC_USB /* [USB_7630_0016] 2010.10.04 -S- */
  413. # Nx9320-PR1-02900 EUT add
  414. service vold_append /system/bin/vold_append
  415. socket vold_append stream 0660 root system
  416. group system
  417. ioprio be 2
  418. #endif /* CONFIG_NCMC_USB [USB_7630_0016] 2010.10.04 -E- */
  419.  
  420. service netd /system/bin/netd
  421. socket netd stream 0666 root system
  422.  
  423. service debuggerd /system/bin/debuggerd
  424.  
  425. service qmuxd /system/bin/qmuxd
  426.  
  427. service ril-daemon /system/bin/rild
  428. socket rild stream 660 root radio
  429. socket rild-debug stream 660 radio system
  430. user root
  431. group radio cache inet misc audio qcom_oncrpc diag
  432.  
  433. service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
  434. socket zygote stream 666
  435. onrestart write /sys/android_power/request_state wake
  436. onrestart write /sys/power/state on
  437. onrestart restart media
  438.  
  439. service media /system/bin/mediaserver
  440. user media
  441. group system qcom_oncrpc audio camera graphics inet net_bt net_bt_admin net_raw
  442. ioprio rt 4
  443.  
  444. service bootanim /system/bin/bootanimation
  445. user graphics
  446. # add 2010-12-12 FBU_HDN_OTASP qcom_oncrpc
  447. group graphics qcom_oncrpc
  448. disabled
  449. oneshot
  450.  
  451. service dbus /system/bin/dbus-daemon --system --nofork
  452. socket dbus stream 660 bluetooth bluetooth
  453. user bluetooth
  454. group bluetooth net_bt_admin
  455.  
  456. service bluetoothd /system/bin/bluetoothd -n
  457. socket bluetooth stream 660 bluetooth bluetooth
  458. socket dbus_bluetooth stream 660 bluetooth bluetooth
  459. # init.rc does not yet support applying capabilities, so run as root and
  460. # let bluetoothd drop uid to bluetooth with the right linux capabilities
  461. group bluetooth net_bt_admin misc
  462. disabled
  463.  
  464. service hfag /system/bin/sdptool add --channel=10 HFAG
  465. user bluetooth
  466. group bluetooth net_bt_admin
  467. disabled
  468. oneshot
  469.  
  470. service hsag /system/bin/sdptool add --channel=11 HSAG
  471. user bluetooth
  472. group bluetooth net_bt_admin
  473. disabled
  474. oneshot
  475.  
  476. service opush /system/bin/sdptool add --channel=12 OPUSH
  477. user bluetooth
  478. group bluetooth net_bt_admin
  479. disabled
  480. oneshot
  481.  
  482. service pbap /system/bin/sdptool add --channel=19 PBAP
  483. user bluetooth
  484. group bluetooth net_bt_admin
  485. disabled
  486. oneshot
  487.  
  488. service installd /system/bin/installd
  489. socket installd stream 600 system system
  490.  
  491. service flash_recovery /system/etc/install-recovery.sh
  492. oneshot
  493.  
  494. # 2011.01.06 [FBU-NES-FOTA] Start
  495. service recovery_update /system/bin/recovery-update
  496. oneshot
  497. # 2011.01.06 [FBU-NES-FOTA] End
  498.  
  499. # Discretix DRM change start
  500. service dx_drm_server /system/bin/DxDrmServerIpc -f -o allow_other /data/DxDrm/fuse
  501. # Discretix DRM change end
  502.  
  503. service racoon /system/bin/racoon
  504. socket racoon stream 600 system system
  505. # racoon will setuid to vpn after getting necessary resources.
  506. group net_admin
  507. disabled
  508. oneshot
  509.  
  510. service mtpd /system/bin/mtpd
  511. socket mtpd stream 600 system system
  512. user vpn
  513. group vpn net_admin net_raw
  514. disabled
  515. oneshot
  516.  
  517. service keystore /system/bin/keystore /data/misc/keystore
  518. user keystore
  519. group keystore
  520. socket keystore stream 666
  521.  
  522. service dumpstate /system/bin/dumpstate -s
  523. socket dumpstate stream 0660 shell log
  524. disabled
  525. oneshot
  526.  
  527. # Add for Nx9320 Diag Command Specifications for WMC
  528. service wmcd /system/bin/wmcd
  529. oneshot
  530.  
  531. #2010.11.25 DTV_ADD START
  532. service dtvserver /system/bin/dtvserver
  533. service dtvsdserver /system/bin/dtvsdserver
  534. #2010.11.25 DTV_ADD END
  535.  
  536. # 2010.10.08 [S_VERTICAL_VOD_MOD][HSK/Shibuya][Nx9320-PR1-03466]WMP OEM Setting
  537. service wmdrmd /system/bin/wmdrmd
  538. socket wmdrmd stream 666
  539. oneshot
  540.  
  541. # 2010.12.21 ADD-S SBU-ESE[MNK-CR2-00458]
  542. #for WebAPI
  543. #web server
  544. service webserverinit /system/bin/lighttpd-angel -f /system/etc/lighttpd/lighttpd-useradd.conf -D
  545. disabled
  546.  
  547. service webserver /system/bin/lighttpd-angel -f /system/etc/lighttpd/lighttpd.conf -D
  548. disabled
  549.  
  550. on property:service.webserver.enable=1
  551. start uidcopymif
  552. stop webserver
  553. stop webserverinit
  554. start webserver
  555.  
  556. on property:service.webserver.enable=2
  557. start uidcopypserv
  558. stop webserver
  559. stop webserverinit
  560. start webserverinit
  561.  
  562. on property:service.webserver.enable=0
  563. stop webserver
  564. stop webserverinit
  565.  
  566. #for nmbd
  567. service psrvnmbd /system/bin/nmbd -i
  568. disabled
  569.  
  570. on property:service.nmbd.enable=1
  571. start psrvnmbd
  572.  
  573. on property:service.nmbd.enable=0
  574. stop psrvnmbd
  575.  
  576. #for init file copy
  577. service webapi_init /system/bin/sh /system/etc/webapi/shell/webapi_init.sh
  578. oneshot
  579.  
  580. #for create cert files
  581. service webapimkcert /system/bin/sh /system/etc/webapi/shell/mkcert.sh
  582. disabled
  583. oneshot
  584.  
  585. #for copy uid file
  586. service uidcopymif /system/bin/sh /system/etc/webapi/shell/uidcopy_mif.sh
  587. disabled
  588. oneshot
  589.  
  590. service uidcopypserv /system/bin/sh /system/etc/webapi/shell/uidcopy_pservermanager.sh
  591. disabled
  592. oneshot
  593.  
  594. #for reload lighttpd.conf
  595.  
  596. service webserver_reload /system/bin/webapi/send_sighup2lighttpd-angl
  597.  
  598. disabled
  599.  
  600. oneshot
  601.  
  602. # 2010.12.21 ADD-E SBU-ESE[MNK-CR2-00458]
  603.  
  604. # 2010.12.27 ADD-S SBU-ESE[MNK-CR2-00557]
  605. service touchsearchd /system/bin/logwrapper /system/bin/touchsearchd
  606. oneshot
  607. # 2010.12.27 ADD-E SBU-ESE[MNK-CR2-00557]
Add Comment
Please, Sign In to add comment