Advertisement
Guest User

profile

a guest
Jun 21st, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.25 KB | None | 0 0
  1. # /etc/profile: system-wide .profile file for the Bourne shells
  2. trap "" 2
  3.  
  4. export PATH=/home/bin:/home/scripts:/opt/bin:/bin:/sbin:/usr/bin:/usr/local/jamvm/bin:/opt/scripts
  5. export LD_LIBRARY_PATH=/lib/public:/lib/private:/lib/gpl:/lib
  6. KERNELVER=2.6.30
  7.  
  8. # TMOUT=0 means no busybox shell timeout.
  9. # if you want the busybox shell to timeout after some number of seconds of inactivity,
  10. # change the 0 to the number of seconds, e.g. 300.
  11. export TMOUT=0
  12.  
  13. echo
  14. firsttime=`echo /var/udhcpd/udhcpd.lease*`
  15. if [ "$firsttime" = "/var/udhcpd/udhcpd.lease*" ]; then
  16. echo "Loading drivers and kernel modules... "
  17. echo
  18. # no-op
  19. # create directory in /var mounted for TMPFS
  20. mknod /var/fuse c 10 229
  21. chmod a+rw /var/fuse
  22. mkdir -p /var/log /var/run /var/state/dhcp /var/ppp /var/udhcpd /var/zebra /var/siproxd /var/cache /var/tmp /var/samba /var/samba/share /var/samba/homes /var/samba/private /var/samba/locks
  23. cp /etc/smb.conf /var/samba/ 2>/dev/null
  24.  
  25. #wtmp
  26. ln -s /data/wtmp /var/log/wtmp
  27.  
  28. echo > /var/udhcpd/udhcpd.leases
  29. ifconfig lo 127.0.0.1 netmask 255.0.0.0 broadcast 127.255.255.255 up
  30. # /etc/modules_install /lib/modules/$KERNELVER/extra
  31. test -e /lib/modules/$KERNELVER/extra/bcm_log.ko && insmod /lib/modules/$KERNELVER/extra/bcm_log.ko
  32. test -e /lib/modules/$KERNELVER/extra/chipinfo.ko && insmod /lib/modules/$KERNELVER/extra/chipinfo.ko
  33. test -e /lib/modules/$KERNELVER/extra/bcm_ingqos.ko && insmod /lib/modules/$KERNELVER/extra/bcm_ingqos.ko
  34. test -e /lib/modules/$KERNELVER/extra/bcm_bpm.ko && insmod /lib/modules/$KERNELVER/extra/bcm_bpm.ko
  35. test -e /lib/modules/$KERNELVER/extra/pktflow.ko && insmod /lib/modules/$KERNELVER/extra/pktflow.ko fcacheMaxEntries=1024
  36. test -e /lib/modules/$KERNELVER/extra/pktcmf.ko && insmod /lib/modules/$KERNELVER/extra/pktcmf.ko
  37. test -e /lib/modules/$KERNELVER/extra/bcmfap.ko && insmod /lib/modules/$KERNELVER/extra/bcmfap.ko
  38. test -e /etc/cmf/cmfcfg && /etc/cmf/cmfcfg
  39. # test -e /lib/modules/$KERNELVER/extra/profdrvdd.ko && insmod /lib/modules/$KERNELVER/extra/profdrvdd.ko
  40. test -e /lib/modules/$KERNELVER/extra/bcmxtmcfg.ko && insmod /lib/modules/$KERNELVER/extra/bcmxtmcfg.ko
  41. # test -e /lib/modules/$KERNELVER/extra/ext_bonding.ko && insmod /lib/modules/$KERNELVER/extra/ext_bonding.ko
  42. # test -e /lib/modules/$KERNELVER/extra/atmapi.ko && insmod /lib/modules/$KERNELVER/extra/atmapi.ko
  43. # test -e /lib/modules/$KERNELVER/extra/blaa_dd.ko && insmod /lib/modules/$KERNELVER/extra/blaa_dd.ko
  44. test -e /lib/modules/$KERNELVER/extra/bcmprocfs.ko && insmod /lib/modules/$KERNELVER/extra/bcmprocfs.ko
  45. # test -e /lib/modules/$KERNELVER/kernel/net/ipv6/ipv6.ko && insmod /lib/modules/$KERNELVER/kernel/net/ipv6/ipv6.ko
  46. test -e /lib/modules/$KERNELVER/kernel/net/atm/br2684.ko && insmod /lib/modules/$KERNELVER/kernel/net/atm/br2684.ko
  47. # test -e /lib/modules/$KERNELVER/extra/linux-kernel-bde.ko && insmod /lib/modules/$KERNELVER/extra/linux-kernel-bde.ko
  48. # test -e /lib/modules/$KERNELVER/extra/linux-user-bde.ko && insmod /lib/modules/$KERNELVER/extra/linux-user-bde.ko
  49. # enet depends on moca depends on i2c
  50. # test -e /lib/modules/$KERNELVER/extra/i2c_bcm6xxx.ko && insmod /lib/modules/$KERNELVER/extra/i2c_bcm6xxx.ko
  51. # test -e /lib/modules/$KERNELVER/extra/bcm3450.ko && insmod /lib/modules/$KERNELVER/extra/bcm3450.ko
  52. # test -e /lib/modules/$KERNELVER/extra/gpon_i2c.ko && insmod /lib/modules/$KERNELVER/extra/gpon_i2c.ko
  53. # test -e /lib/modules/$KERNELVER/extra/laser_i2c.ko && insmod /lib/modules/$KERNELVER/extra/laser_i2c.ko
  54. # test -e /lib/modules/$KERNELVER/extra/bcmmoca.ko && insmod /lib/modules/$KERNELVER/extra/bcmmoca.ko
  55. test -e /lib/modules/$KERNELVER/extra/bcm_enet.ko && insmod /lib/modules/$KERNELVER/extra/bcm_enet.ko
  56. test -e /lib/modules/$KERNELVER/extra/bcmsw.ko && insmod /lib/modules/$KERNELVER/extra/bcmsw.ko && ifconfig bcmsw up
  57. # test -e /lib/modules/$KERNELVER/extra/bcm_usb.ko && insmod /lib/modules/$KERNELVER/extra/bcm_usb.ko
  58. test -e /lib/modules/$KERNELVER/extra/bcmarl.ko && insmod /lib/modules/$KERNELVER/extra/bcmarl.ko
  59. test -e /lib/modules/$KERNELVER/extra/adsldd.ko && insmod /lib/modules/$KERNELVER/extra/adsldd.ko
  60.  
  61. #WLAN Module
  62. test -e /lib/modules/$KERNELVER/extra/wl.ko && insmod /lib/modules/$KERNELVER/extra/wl.ko
  63. test -e /etc/wlan/rtecdc.trx && mount -t usbfs none /proc/bus/usb && /bin/bcmdl /etc/wlan/rtecdc.trx && sleep 2 && insmod /lib/modules/$KERNELVER/extra/wl-usb.ko
  64.  
  65. # test -e /lib/modules/$KERNELVER/extra/dect.ko && insmod /lib/modules/$KERNELVER/extra/dect.ko
  66. # test -e /lib/modules/$KERNELVER/extra/dectshim.ko && insmod /lib/modules/$KERNELVER/extra/dectshim.ko
  67. test -e /lib/modules/$KERNELVER/extra/dspdd.ko && insmod /lib/modules/$KERNELVER/extra/dspdd.ko
  68. test -e /lib/modules/$KERNELVER/extra/endpointdd.ko && insmod /lib/modules/$KERNELVER/extra/endpointdd.ko
  69. test -e /lib/modules/$KERNELVER/extra/p8021ag.ko && insmod /lib/modules/$KERNELVER/extra/p8021ag.ko
  70.  
  71. # other modules
  72. # test -e /lib/modules/$KERNELVER/extra/isdn.ko && insmod /lib/modules/$KERNELVER/extra/isdn.ko
  73. test -e /lib/modules/$KERNELVER/kernel/drivers/isdn/capi/capi.ko && insmod /lib/modules/$KERNELVER/kernel/drivers/isdn/capi/capi.ko
  74.  
  75. # Media Management
  76. test -e /bin/mm.exe && /bin/mm.exe &
  77.  
  78. # test -e /lib/modules/$KERNELVER/extra/bcmgpon.ko && insmod /lib/modules/$KERNELVER/extra/bcmgpon.ko
  79. test -e /lib/modules/$KERNELVER/extra/bcmvlan.ko && insmod /lib/modules/$KERNELVER/extra/bcmvlan.ko
  80. test -e /lib/modules/$KERNELVER/extra/pwrmngtd.ko && insmod /lib/modules/$KERNELVER/extra/pwrmngtd.ko
  81. test -e /lib/modules/$KERNELVER/kernel/drivers/char/hw_random/rng-core.ko && insmod /lib/modules/$KERNELVER/kernel/drivers/char/hw_random/rng-core.ko
  82. test -e /lib/modules/$KERNELVER/extra/bcmtrng.ko && insmod /lib/modules/$KERNELVER/extra/bcmtrng.ko
  83.  
  84. #test -e /lib/modules/$KERNELVER/extra/laser_dev.ko && insmod /lib/modules/$KERNELVER/extra/laser_dev.ko
  85.  
  86. # gponolt test tool
  87. # test -e /bin/gponolt && /bin/gponolt --daemon
  88.  
  89. #test -e /bin/mm.exe && sleep 5
  90. test -e /bin/set_iptables && /bin/set_iptables &
  91.  
  92.  
  93. # if engineering debug tools are being built, as indicated by presence of
  94. # dumpsysinfo.sh, then save a copy of bootup messages for dumping later
  95. test -e /opt/scripts/dumpsysinfo.sh && /bin/dmesg > /var/tmp/bootupmessages
  96.  
  97. # BUILD_GUI_DEBUG
  98.  
  99. # As final step in system bootup, start smd, which will start configuration
  100. # management system (CMS)
  101. # __MSTC__, reduce manufacture bootup time, DelonYu
  102. #smd
  103. fi
  104. #iptk daemon
  105. test -e /bin/icf.exe && /bin/icf.exe &
  106. # __MSTC__, reduce manufacture bootup time, DelonYu start
  107. ReduceTimeFlag=$(cat /proc/nvram/ReduceTimeFlag)
  108. #echo "get ReduceTimeFlag : $ReduceTimeFlag"
  109. if [ $ReduceTimeFlag == "00" ]; then
  110. smd
  111. else
  112. /bin/swmdk &
  113. ifconfig eth0 up
  114. ifconfig eth1 up
  115. ifconfig eth2 up
  116. ifconfig eth3 up
  117. brctl addbr br0 2>/dev/null
  118. brctl addif br0 eth0 2>/dev/null
  119. brctl addif br0 eth1 2>/dev/null
  120. brctl addif br0 eth2 2>/dev/null
  121. brctl addif br0 eth3 2>/dev/null
  122. ifconfig br0 192.192.192.4
  123. ifconfig wl0 up
  124. brctl addif br0 wl0 2>/dev/null
  125. wlctl -i wl0 phytype > /var/wl0
  126. wlctl -i wl0 revinfo > /var/wl0
  127. wlctl -i wl0 bands > /var/wl0bands
  128. wlctl -i wl0 ver > /var/wlver
  129. wlctl -i wl0 cap > /var/wl0cap
  130. wlctl -i wl0 phy_watchdog 0
  131. wlctl -i wl0 up
  132. wlctl -i wl0 leddc 0 2>/dev/null
  133. wlctl -i wl0 down
  134. wlctl -i wl0 wds none
  135. wlctl -i wl0 mbss 0
  136. wlctl -i wl0 bss -C 0 down
  137. wlctl -i wl0 bss -C 1 down
  138. wlctl -i wl0 bss -C 2 down
  139. wlctl -i wl0 bss -C 3 down
  140. wlctl -i wl0 ssid -C 0 'M''F''G'
  141. wlctl -i wl0 ap 1
  142. wlctl -i wl0 infra 1
  143. wlctl -i wl0 closed 0
  144. wlctl -i wl0 country US
  145. wlctl -i wl0 band b
  146. wlctl -i wl0 regulatory 0
  147. wlctl -i wl0 radar 0 2>/dev/null
  148. wlctl -i wl0 spect 0 2>/dev/null
  149. wlctl -i wl0 nmode -1
  150. wlctl -i wl0 mimo_bw_cap 1
  151. wlctl -i wl0 chanspec -c 4 -b 2 -w 40 -s -1
  152. wlctl -i wl0 wpa_cap -C 0 > /var/wpa_cap0
  153. wlctl -i wl0 wpa_cap -C 0 0 2>/dev/null
  154. wlctl -i wl0 wpa_cap -C 1 > /var/wpa_cap0
  155. wlctl -i wl0 wpa_cap -C 1 0 2>/dev/null
  156. wlctl -i wl0 wpa_cap -C 2 > /var/wpa_cap0
  157. wlctl -i wl0 wpa_cap -C 2 0 2>/dev/null
  158. wlctl -i wl0 wpa_cap -C 3 > /var/wpa_cap0
  159. wlctl -i wl0 wpa_cap -C 3 0 2>/dev/null
  160. wlctl -i wl0 maxassoc 32
  161. wlctl -i wl0 bss_maxassoc 32
  162. wlctl -i wl0 gmode Auto
  163. wlctl -i wl0 gmode_protection_override -1
  164. wlctl -i wl0 gmode_protection_control 2
  165. wlctl -i wl0 nmode_protection_override -1
  166. wlctl -i wl0 protection_control 2
  167. wlctl -i wl0 rifs_advert 0
  168. wlctl -i wl0 obss_coex 0
  169. wlctl -i wl0 stbc_tx -1
  170. wlctl -i wl0 nreqd 0
  171. wlctl -i wl0 wme 0 2>/dev/null
  172. wlctl -i wl0 afterburner_override 0 2>/dev/null
  173. wlctl -i wl0 ampdu 1
  174. wlctl -i wl0 afterburner_override 0
  175. wlctl -i wl0 wme 1 2>/dev/null
  176. wlctl -i wl0 wme_noack 0 2>/dev/null
  177. wlctl -i wl0 wme_apsd 1 2>/dev/null
  178. wlctl -i wl0 wme_bss_disable 0
  179. wlctl -i wl0 plcphdr long
  180. wlctl -i wl0 rate 0
  181. wlctl -i wl0 bg_rate 0
  182. wlctl -i wl0 bg_mrate 18.0
  183. wlctl -i wl0 rtsthresh 2347
  184. wlctl -i wl0 fragthresh 2346
  185. wlctl -i wl0 dtim 1
  186. wlctl -i wl0 bi 100
  187. wlctl -i wl0 bcn_rotate 1
  188. wlctl -i wl0 frameburst 1
  189. wlctl -i wl0 ap_isolate 0
  190. wlctl -i wl0 pwr_percent 100
  191. wlctl -i wl0 wmf_bss_enable 0
  192. wlctl -i wl0.1 wmf_bss_enable 0
  193. wlctl -i wl0.2 wmf_bss_enable 0
  194. wlctl -i wl0.3 wmf_bss_enable 0
  195. wlctl -i wl0 chanim_mode 1
  196. wlctl -i wl0 rxchain_pwrsave_enable 0
  197. wlctl -i wl0 rxchain_pwrsave_quiet_time 1800
  198. wlctl -i wl0 rxchain_pwrsave_pps 10
  199. wlctl -i wl0 radio_pwrsave_enable 0 2>/dev/null
  200. wlctl -i wl0 radio_pwrsave_quiet_time 10
  201. wlctl -i wl0 radio_pwrsave_pps 10
  202. wlctl -i wl0 radio_pwrsave_level 0 2>/dev/null
  203. wlctl -i wl0 mac none
  204. wlctl -i wl0 macmode 0
  205. wlctl -i wl0 up
  206. wlctl -i wl0 rmwep -C 0 0
  207. wlctl -i wl0 rmwep -C 0 1
  208. wlctl -i wl0 rmwep -C 0 2
  209. wlctl -i wl0 rmwep -C 0 3
  210. wlctl -i wl0 rmwep -C 1 0
  211. wlctl -i wl0 rmwep -C 1 1
  212. wlctl -i wl0 rmwep -C 1 2
  213. wlctl -i wl0 rmwep -C 1 3
  214. wlctl -i wl0 rmwep -C 2 0
  215. wlctl -i wl0 rmwep -C 2 1
  216. wlctl -i wl0 rmwep -C 2 2
  217. wlctl -i wl0 rmwep -C 2 3
  218. wlctl -i wl0 rmwep -C 3 0
  219. wlctl -i wl0 rmwep -C 3 1
  220. wlctl -i wl0 rmwep -C 3 2
  221. wlctl -i wl0 rmwep -C 3 3
  222. wlctl -i wl0 wsec -C 0 0
  223. wlctl -i wl0 wsec_restrict -C 0 0
  224. wlctl -i wl0 wpa_auth -C 0 0
  225. wlctl -i wl0 eap 0
  226. wlctl -i wl0 auth -C 0 0
  227. wlctl -i wl0 wdswsec 0
  228. wlctl -i wl0 wdswsec_enable 0
  229. wlctl -i wl0 bss -C 0 up
  230. wlctl -i wl0 lazywds 0
  231. wlctl -i wl0 wds
  232. wlctl -i wl0 wdstimeout 1
  233. wlctl -i wl0 phy_watchdog 1
  234. wlctl -i wl0 fcache 1
  235. ifconfig wl1 up
  236. brctl addif br0 wl1 2>/dev/null
  237. wlctl -i wl1 phytype > /var/wl1
  238. wlctl -i wl1 revinfo > /var/wl1
  239. wlctl -i wl1 bands > /var/wl1bands
  240. wlctl -i wl1 ver > /var/wlver
  241. wlctl -i wl1 cap > /var/wl1cap
  242. wlctl -i wl1 tp_id 1
  243. wlctl -i wl1 phy_watchdog 0
  244. wlctl -i wl1 up
  245. wlctl -i wl1 leddc 0 2>/dev/null
  246. wlctl -i wl1 down
  247. wlctl -i wl1 wds none
  248. wlctl -i wl1 mbss 0
  249. wlctl -i wl1 bss -C 0 down
  250. wlctl -i wl1 bss -C 1 down
  251. wlctl -i wl1 bss -C 2 down
  252. wlctl -i wl1 bss -C 3 down
  253. wlctl -i wl1 ssid -C 0 'M''S''G''-''5''G''H''z'
  254. wlctl -i wl1 ap 1
  255. wlctl -i wl1 infra 1
  256. wlctl -i wl1 closed 0
  257. wlctl -i wl1 country US
  258. wlctl -i wl1 band a
  259. wlctl -i wl1 regulatory 0
  260. wlctl -i wl1 radar 0 2>/dev/null
  261. wlctl -i wl1 spect 0 2>/dev/null
  262. wlctl -i wl1 nmode -1
  263. wlctl -i wl1 bw_cap 5g 7
  264. wlctl -i wl1 nar 0
  265. wlctl -i wl1 chanspec 112/80
  266. wlctl -i wl1 wpa_cap -C 0 > /var/wpa_cap1
  267. wlctl -i wl1 wpa_cap -C 0 0 2>/dev/null
  268. wlctl -i wl1 wpa_cap -C 1 > /var/wpa_cap1
  269. wlctl -i wl1 wpa_cap -C 1 0 2>/dev/null
  270. wlctl -i wl1 wpa_cap -C 2 > /var/wpa_cap1
  271. wlctl -i wl1 wpa_cap -C 2 0 2>/dev/null
  272. wlctl -i wl1 wpa_cap -C 3 > /var/wpa_cap1
  273. wlctl -i wl1 wpa_cap -C 3 0 2>/dev/null
  274. wlctl -i wl1 maxassoc 32
  275. wlctl -i wl1 bss_maxassoc 32
  276. wlctl -i wl1 nmode_protection_override -1
  277. wlctl -i wl1 protection_control 2
  278. wlctl -i wl1 rifs_advert 0
  279. wlctl -i wl1 obss_coex 0
  280. wlctl -i wl1 stbc_tx -1
  281. wlctl -i wl1 nreqd 0
  282. wlctl -i wl1 mode_reqd 0
  283. wlctl -i wl1 wme 0 2>/dev/null
  284. wlctl -i wl1 afterburner_override 0 2>/dev/null
  285. wlctl -i wl1 ampdu 1
  286. wlctl -i wl1 afterburner_override 0
  287. wlctl -i wl1 wme 1 2>/dev/null
  288. wlctl -i wl1 wme_noack 0 2>/dev/null
  289. wlctl -i wl1 wme_apsd 1 2>/dev/null
  290. wlctl -i wl1 wme_bss_disable 0
  291. wlctl -i wl1 rate 0
  292. wlctl -i wl1 a_rate 0
  293. wlctl -i wl1 a_mrate 18.0
  294. wlctl -i wl1 rtsthresh 2347
  295. wlctl -i wl1 fragthresh 2346
  296. wlctl -i wl1 dtim 1
  297. wlctl -i wl1 bi 100
  298. wlctl -i wl1 bcn_rotate 1
  299. wlctl -i wl1 frameburst 1
  300. wlctl -i wl1 ap_isolate 0
  301. wlctl -i wl1 pwr_percent 100
  302. wlctl -i wl1 wmf_bss_enable 0
  303. wlctl -i wl1.1 wmf_bss_enable 0
  304. wlctl -i wl1.2 wmf_bss_enable 0
  305. wlctl -i wl1.3 wmf_bss_enable 0
  306. wlctl -i wl1 chanim_mode 1
  307. wlctl -i wl1 rxchain_pwrsave_enable 0
  308. wlctl -i wl1 rxchain_pwrsave_quiet_time 1800
  309. wlctl -i wl1 rxchain_pwrsave_pps 10
  310. wlctl -i wl1 radio_pwrsave_enable 0 2>/dev/null
  311. wlctl -i wl1 radio_pwrsave_quiet_time 10
  312. wlctl -i wl1 radio_pwrsave_pps 10
  313. wlctl -i wl1 radio_pwrsave_level 0 2>/dev/null
  314. wlctl -i wl1 mac none
  315. wlctl -i wl1 macmode 0
  316. wlctl -i wl1 up
  317. wlctl -i wl1 rmwep -C 0 0
  318. wlctl -i wl1 rmwep -C 0 1
  319. wlctl -i wl1 rmwep -C 0 2
  320. wlctl -i wl1 rmwep -C 0 3
  321. wlctl -i wl1 rmwep -C 1 0
  322. wlctl -i wl1 rmwep -C 1 1
  323. wlctl -i wl1 rmwep -C 1 2
  324. wlctl -i wl1 rmwep -C 1 3
  325. wlctl -i wl1 rmwep -C 2 0
  326. wlctl -i wl1 rmwep -C 2 1
  327. wlctl -i wl1 rmwep -C 2 2
  328. wlctl -i wl1 rmwep -C 2 3
  329. wlctl -i wl1 rmwep -C 3 0
  330. wlctl -i wl1 rmwep -C 3 1
  331. wlctl -i wl1 rmwep -C 3 2
  332. wlctl -i wl1 rmwep -C 3 3
  333. wlctl -i wl1 wsec -C 0 0
  334. wlctl -i wl1 wsec_restrict -C 0 0
  335. wlctl -i wl1 wpa_auth -C 0 0
  336. wlctl -i wl1 eap 0
  337. wlctl -i wl1 auth -C 0 0
  338. wlctl -i wl1 wdswsec 0
  339. wlctl -i wl1 wdswsec_enable 0
  340. wlctl -i wl1 bss -C 0 up
  341. wlctl -i wl1 lazywds 0
  342. wlctl -i wl1 wds
  343. wlctl -i wl1 wdstimeout 1
  344. wlctl -i wl1 phy_watchdog 1
  345. wlctl -i wl1 fcache 1
  346. fc disable
  347. mount -t devpts devpts /dev/pts
  348. # generate login files
  349. echo "supervisor:3Gnc.CJE1790M:0:0:Administrator:/:/bin/sh" > /var/passwd
  350. echo "root::0:root,supervisor,support,user" > /var/group
  351. # bring up busybox telnetd (/usr/sbin/telnetd) instead of brcm telnetd (/bin/telnetd)
  352. /sbin/telnetd
  353. fi
  354. # __MSTC__, reduce manufacture bootup time, DelonYu end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement