371 Commits
target ... 9.05

Author SHA1 Message Date
gutosie
9a733ffe1f update 9.05 add osmio4kplus 2020-09-12 18:48:59 +00:00
gutosie
49b9cf1ca1 update 9.05 2020-09-12 18:48:20 +00:00
gutosie
74efb17f9d update 9.05 2020-09-12 18:47:15 +00:00
gutosie
91b8ff9d22 9.05 update 2020-09-12 18:45:52 +00:00
gutosie
13c5421ed4 up fix 2020-08-22 17:59:36 +00:00
gutosie
a8d26cbfee 9.02 - 9.04 add copy lan-wlan 2020-08-22 15:50:28 +03:00
gutosie
3e6d4adcfe update 9.04 2020-08-22 15:49:41 +03:00
gutosie
f944c63ca7 update 9.2 - 9.03 2020-08-22 15:48:44 +03:00
gutosie
eb55824c25 Update ver.txt 2020-08-07 06:59:02 +00:00
gutosie
80de61ce65 Update __init__.py 2020-08-07 06:58:36 +00:00
gutosie
c3aed90ecb 9.02 2020-06-03 12:38:47 +03:00
gutosie
97601b8764 update 9.02 2020-06-03 12:38:13 +03:00
gutosie
c99ff99938 up 9.02 2020-06-03 12:37:28 +03:00
gutosie
27bed75762 add separator 2020-06-03 12:36:55 +03:00
gutosie
8fc7952fe9 fix mips stb 2020-05-20 22:48:13 +03:00
gutosie
4e57e1f12b Delete stbinfo 2020-05-20 22:43:13 +03:00
gutosie
0a7b20ef4e fix h7 2020-05-20 10:33:18 +03:00
gutosie
b911cbf027 fix 2020-05-20 10:32:51 +03:00
gutosie
008e262417 fix update 9.01 2020-05-19 23:33:09 +03:00
gutosie
c3c5d38895 upNEO 9.01 2020-05-19 21:00:59 +03:00
gutosie
7ff36d8aad up 9.01 2020-05-19 20:38:21 +03:00
gutosie
068f0f7a13 up to 9.01 2020-05-19 20:12:36 +03:00
gutosie
8602c4219e update 9.01 2020-05-19 20:09:54 +03:00
gutosie
5a21a49c99 update 2020-05-19 20:08:31 +03:00
gutosie
1969dc68f0 update 2020-05-19 20:07:10 +03:00
gutosie
5540aa582c Add files via upload 2020-05-19 20:06:09 +03:00
gutosie
657b1da170 update 9.01 2020-05-19 20:05:22 +03:00
gutosie
5b6b19fe35 update 9.01 2020-05-19 20:03:54 +03:00
gutosie
055310a614 t 2020-05-16 10:23:23 +03:00
gutosie
b36c6e322a test 2020-05-16 10:15:38 +03:00
gutosie
a407874ea9 Update ver.txt 2020-05-16 10:07:49 +03:00
gutosie
9f35e90223 Delete NeoBoot.sh 2020-05-13 06:05:26 +03:00
gutosie
ef4076b3db Delete numery.png 2020-05-13 06:05:06 +03:00
gutosie
6464131d51 Delete ok.png 2020-05-13 06:04:57 +03:00
gutosie
8761fe68dc Delete pasek.png 2020-05-13 06:04:50 +03:00
gutosie
95a7f2fbce Delete pasek2.png 2020-05-13 06:04:41 +03:00
gutosie
e8752916c6 Delete ping.png 2020-05-13 06:04:33 +03:00
gutosie
24a3ec389d Delete red-big.png 2020-05-13 06:04:25 +03:00
gutosie
7ec821394b Delete red25.png 2020-05-13 06:04:17 +03:00
gutosie
a3e94faa29 Delete redcor.png 2020-05-13 06:04:08 +03:00
gutosie
01abf0d3c5 Delete scroll.png 2020-05-13 06:04:00 +03:00
gutosie
81adf88a68 Delete sel500.png 2020-05-13 06:03:52 +03:00
gutosie
49582a0f5a Delete sel660x35.png 2020-05-13 06:03:42 +03:00
gutosie
88af20cf4f Delete selektor.png 2020-05-13 06:03:33 +03:00
gutosie
0f2b00efc1 Delete selektor1.png 2020-05-13 06:03:24 +03:00
gutosie
c81899d78a Delete sep.png 2020-05-13 06:03:16 +03:00
gutosie
d0539ac854 Delete separator.png 2020-05-13 06:03:07 +03:00
gutosie
95524f0d0d Delete separator2.png 2020-05-13 06:02:59 +03:00
gutosie
a4e0d038fe Delete skin1.png 2020-05-13 06:02:51 +03:00
gutosie
bb3dd4f6b1 Delete transp.png 2020-05-13 06:02:41 +03:00
gutosie
3eae0e71db Delete transp1.png 2020-05-13 06:02:32 +03:00
gutosie
742bb68d9e Delete updown.png 2020-05-13 06:02:23 +03:00
gutosie
d3887aba6e Delete usb.png 2020-05-13 06:02:13 +03:00
gutosie
55c19b421e Delete vuultimo4k.png 2020-05-13 06:02:03 +03:00
gutosie
bff40d438b Delete yellow25.png 2020-05-13 06:01:53 +03:00
gutosie
b147768b93 Delete numer.png 2020-05-13 06:01:45 +03:00
gutosie
2af9ce5af2 Delete menu.png 2020-05-13 06:01:36 +03:00
gutosie
e9ee94a212 Delete mb.png 2020-05-13 06:01:26 +03:00
gutosie
40573af355 Delete logo.png 2020-05-13 06:01:09 +03:00
gutosie
6b32f70569 Delete listselection800x35.png 2020-05-13 06:01:01 +03:00
gutosie
9e81277518 Delete listselection700x32-fs8.png 2020-05-13 06:00:54 +03:00
gutosie
c7eb640bff Delete listselection300x25-fs8.png 2020-05-13 06:00:45 +03:00
gutosie
20241d0b1c Delete listselection1195x50.png 2020-05-13 06:00:37 +03:00
gutosie
1d7f6b2ced Delete listselection1150x50-fs8.png 2020-05-13 06:00:28 +03:00
gutosie
4f7aef3687 Delete listselection1060x42-fs8.png 2020-05-13 06:00:20 +03:00
gutosie
4bd52ad665 Delete linia.png 2020-05-13 06:00:10 +03:00
gutosie
1ffe1c38f5 Delete key_4.png 2020-05-13 06:00:02 +03:00
gutosie
6d30483ff4 Delete key_3.png 2020-05-13 05:59:53 +03:00
gutosie
d52d041df9 Delete key_2.png 2020-05-13 05:59:45 +03:00
gutosie
3424072776 Delete key_1.png 2020-05-13 05:59:37 +03:00
gutosie
5b9ba95115 Delete greencor.png 2020-05-13 05:59:29 +03:00
gutosie
e1828cf4a1 Delete green25.png 2020-05-13 05:59:20 +03:00
gutosie
87fff1e17f Delete frame_base-fs8.png 2020-05-13 05:59:12 +03:00
gutosie
443d275f13 Delete frame835x500.png 2020-05-13 05:59:04 +03:00
gutosie
5eeef11f55 Delete frame1250x850.png 2020-05-13 05:58:56 +03:00
gutosie
2ea6defee7 Delete dot1.png 2020-05-13 05:58:46 +03:00
gutosie
cc68350452 Delete dot.png 2020-05-13 05:57:50 +03:00
gutosie
50024f8dba Delete div-v.png 2020-05-13 05:57:42 +03:00
gutosie
f90bedd977 Delete dev_usb.png 2020-05-13 05:57:34 +03:00
gutosie
b75f4174b5 Delete dev_sd.png 2020-05-13 05:56:54 +03:00
gutosie
ce1b9d3050 Delete dev_hdd.png 2020-05-13 05:56:45 +03:00
gutosie
c6703120d9 Delete ex_init.py 2020-05-13 05:56:33 +03:00
gutosie
ec5b17b716 Delete neoinstal.mvi 2020-05-13 05:56:22 +03:00
gutosie
334ad6c009 Delete neo.png 2020-05-13 05:56:12 +03:00
gutosie
4773334ae3 Delete extract.py 2020-05-13 05:56:03 +03:00
gutosie
76585a3be0 Delete neologo.mvi 2020-05-13 05:55:52 +03:00
gutosie
74c7ec1afd Delete neowait.mvi 2020-05-13 05:55:42 +03:00
gutosie
9dc8d2c580 Delete run.py 2020-05-13 05:55:31 +03:00
gutosie
6cb2ec7748 Delete stbinfo 2020-05-13 05:55:22 +03:00
gutosie
984f4e3db8 Delete error.mvi 2020-05-13 05:55:11 +03:00
gutosie
7f7f36bb82 Delete unpack.py 2020-05-13 05:54:51 +03:00
gutosie
4c0d28dd2d Delete neoinitarmvu 2020-05-13 05:53:51 +03:00
gutosie
0655fd8534 Delete dev_cf.png 2020-05-12 19:14:48 +03:00
gutosie
859ae20178 Delete channel_sel.png 2020-05-12 19:14:39 +03:00
gutosie
75d5bd7de1 Update README.md 2020-05-12 18:50:57 +03:00
gutosie
f8e6dd6a8b Update README.md 2020-05-12 18:49:55 +03:00
gutosie
3f00077098 NEO_VIP 2020-05-11 18:45:29 +03:00
gutosie
e0bf6e52c3 Delete chan_p_bar.png 2020-05-11 18:14:34 +03:00
gutosie
f10c28e7d3 Delete skin.png 2020-05-11 18:11:51 +03:00
gutosie
9183e51af7 Delete chan_p1_bar.png 2020-05-11 18:07:57 +03:00
gutosie
0a071c4c1a Delete button880x70.png
images
2020-05-11 18:07:42 +03:00
gutosie
be53d81a9a Delete button.png 2020-05-11 18:06:20 +03:00
gutosie
4d4ebf6143 Delete listselection500x40-fs8.png 2020-05-11 18:04:54 +03:00
gutosie
0b730f36e1 Delete yellowcor.png 2020-05-11 18:02:22 +03:00
gutosie
52fe64fc37 Delete box.png 2020-05-11 17:56:49 +03:00
gutosie
db6b349cce Delete border_menu1.png 2020-05-11 17:56:37 +03:00
gutosie
3b2624a3be Delete border_menu.png 2020-05-11 17:56:29 +03:00
gutosie
b4bb89f1a7 Delete bluecor.png 2020-05-11 17:56:20 +03:00
gutosie
a5f5f6c451 Delete blue25.png 2020-05-11 17:56:11 +03:00
gutosie
752de0ba41 Delete blue.png 2020-05-11 17:56:03 +03:00
gutosie
3dac988e48 Delete bg500.png 2020-05-11 17:55:53 +03:00
gutosie
0140e95b05 Delete baza.png 2020-05-11 17:55:45 +03:00
gutosie
58f2bb64b0 Delete arrowup.png 2020-05-11 17:55:30 +03:00
gutosie
33fb5c4f24 Delete arrowleft.png 2020-05-11 17:55:22 +03:00
gutosie
80a02a1fff Delete arrowdown.png 2020-05-11 17:55:14 +03:00
gutosie
7983bea2d6 Delete 1matrix.png 2020-05-11 17:55:06 +03:00
gutosie
dd0d10768a Delete 1frame_base-fs8.png 2020-05-11 17:54:55 +03:00
gutosie
f777993eaf Delete 1channel_sel.png 2020-05-11 17:54:46 +03:00
gutosie
bd08a24ff3 Delete 1chan_p1_bar.png 2020-05-11 17:54:38 +03:00
gutosie
1c3a972b77 Delete userscript.sh 2020-05-11 17:51:54 +03:00
gutosie
4de8728e52 Delete neo_location 2020-05-11 17:51:38 +03:00
gutosie
1bb43ab6fe Delete libpngneo 2020-05-11 17:51:18 +03:00
gutosie
5e5e040a44 Delete neobm 2020-05-11 17:50:58 +03:00
gutosie
86097fa8a5 Delete inithelp 2020-05-11 17:50:31 +03:00
gutosie
425ee58006 Delete nanddump_arm 2020-05-11 17:50:18 +03:00
gutosie
052176b8e9 Delete nanddump_mips 2020-05-11 17:50:08 +03:00
gutosie
0603895a68 Delete neobm_mips 2020-05-11 17:49:52 +03:00
gutosie
6922580121 Delete neobmarm 2020-05-11 17:49:35 +03:00
gutosie
fa05b5256c Delete neoinitarm 2020-05-11 17:49:26 +03:00
gutosie
f6e82c018d Delete neoinitarmvu 2020-05-11 17:49:17 +03:00
gutosie
e8b7c3d0c5 Delete neoinitarmvuDuo4k 2020-05-11 17:49:04 +03:00
gutosie
cb9be373ac Delete neoinitmips 2020-05-11 17:48:54 +03:00
gutosie
9e4d94cde3 Delete neoinitmipsvu 2020-05-11 17:48:44 +03:00
gutosie
5e395f7638 Delete nfidump 2020-05-11 17:48:34 +03:00
gutosie
65252d42b8 Delete utilsbh 2020-05-11 17:48:25 +03:00
gutosie
1086509c60 Delete version 2020-05-11 17:48:09 +03:00
gutosie
f73a22f391 Delete fbclearmips 2020-05-11 17:47:54 +03:00
gutosie
0b854b3419 Delete fbcleararm 2020-05-11 17:47:44 +03:00
gutosie
805e7c309c Delete fbclear 2020-05-11 17:47:31 +03:00
gutosie
5fde288eaa neo_vip 2020-05-11 17:40:55 +03:00
gutosie
4c2060b0cf neo_vip 2020-05-11 17:37:09 +03:00
gutosie
af803be634 neo_vip 2020-05-11 17:36:20 +03:00
gutosie
a361038791 neo_vip 2020-05-11 17:31:20 +03:00
gutosie
27cbf58496 neo_vip 2020-05-11 17:29:55 +03:00
gutosie
44e351a001 neo_vip 2020-05-11 17:28:58 +03:00
gutosie
6663c3581f Delete vuZero4Kmmcblk0p4.sh 2020-05-11 17:12:27 +03:00
gutosie
2b4bb95bc8 Delete vu_dev_mtd1.sh 2020-05-11 17:12:17 +03:00
gutosie
bd6ccbaa2c Delete vu_dev_mtd2.sh 2020-05-11 17:12:09 +03:00
gutosie
ed2314577f Delete vu_mmcblk0p1.sh 2020-05-11 17:12:00 +03:00
gutosie
be555bcfd7 Delete vu_mtd1_run.py 2020-05-11 17:11:52 +03:00
gutosie
61f20f0f38 Delete vuDuo4Kmmcblk0p6.sh 2020-05-11 17:11:44 +03:00
gutosie
79045a3813 Delete vu_mtd2_run.py 2020-05-11 17:11:33 +03:00
gutosie
72ad9f04a9 Delete vu4k_run.py 2020-05-11 17:11:25 +03:00
gutosie
352cb35975 Delete ustym4kpro.sh 2020-05-11 17:11:13 +03:00
gutosie
9fa8cc4646 Delete ustym4kpro.py 2020-05-11 17:11:02 +03:00
gutosie
696f819bc0 Delete mips_run.py 2020-05-11 17:10:53 +03:00
gutosie
c2957a3e79 Delete h7s_run.py 2020-05-11 17:10:43 +03:00
gutosie
356724bfe0 Delete h7s_kernel.sh 2020-05-11 17:10:34 +03:00
gutosie
eaf98d4fa4 Delete findkerneldevice.py 2020-05-11 17:10:25 +03:00
gutosie
9de42b9c22 Delete duo4k_run.py 2020-05-11 17:10:16 +03:00
gutosie
25434f9946 Delete arm_run.py 2020-05-11 17:10:06 +03:00
gutosie
1d2b465d6b Delete neoskins 2020-05-11 17:06:39 +03:00
gutosie
9c279003c9 Create neoskins 2020-05-11 17:02:57 +03:00
gutosie
44fd15f859 Delete zero4k_run.py 2020-05-11 16:50:43 +03:00
gutosie
363ea9872a Delete Harddisk.py 2020-05-11 16:50:17 +03:00
gutosie
433f1e7151 Delete Task.py 2020-05-11 16:50:01 +03:00
gutosie
dd63fe217e Delete module_neoboot.sh 2020-05-11 16:49:47 +03:00
gutosie
552a3736bd Delete nConsole.py 2020-05-11 16:49:32 +03:00
gutosie
b98308c706 Delete lang.mo 2020-05-11 16:49:19 +03:00
gutosie
2d88114146 Delete lang.mo 2020-05-11 16:48:58 +03:00
gutosie
8a5f0444a2 Delete k_up.png 2020-05-11 16:48:40 +03:00
gutosie
d7c50d0091 Delete k_right.png 2020-05-11 16:48:32 +03:00
gutosie
db179e1990 Delete k_left.png 2020-05-11 16:48:23 +03:00
gutosie
5fc548d969 Delete k_down.png 2020-05-11 16:48:15 +03:00
gutosie
15d156b6dc neo_vip 2020-05-11 16:42:47 +03:00
gutosie
e740f386c0 vip 2020-05-11 15:02:44 +03:00
gutosie
0e69d2d6aa vip 2020-05-11 15:00:56 +03:00
gutosie
90d156dc99 9.00 2020-05-11 14:42:12 +03:00
gutosie
9ac06db4d9 neo_vip 2020-05-11 14:40:54 +03:00
gutosie
e3c0f33476 NEO_VIP 2020-05-11 13:01:10 +03:00
gutosie
1230964acf NEO_VIP 2020-05-11 12:59:19 +03:00
gutosie
f92cdd3743 neo-9 VIP 2020-05-11 12:57:13 +03:00
gutosie
ba2b54ed14 The END... 2020-04-29 20:13:48 +03:00
gutosie
15d5dc4e77 Update README.md 2020-04-28 17:56:40 +03:00
gutosie
2465806f5a Update README.md 2020-04-28 17:39:54 +03:00
gutosie
3bbd264560 Update README.md 2020-04-28 17:35:17 +03:00
gutosie
1797cf794d Update README.md 2020-04-28 17:34:54 +03:00
gutosie
2b876dcf54 Update README.md 2020-04-28 17:31:36 +03:00
gutosie
e7b053bde2 Update userscript.sh 2020-04-22 21:55:01 +03:00
gutosie
e6c6dcd3e9 Update userscript.sh 2020-04-22 21:54:13 +03:00
gutosie
1b1f10e48e zero4k fix 2020-04-17 23:59:44 +03:00
gutosie
87b2fec493 8.25 vuZero4K kernel.sh fix 2020-04-17 23:37:10 +03:00
gutosie
360f242c88 8.26 fix for 8.25 2020-04-16 15:04:54 +03:00
gutosie
0bac7c6239 8.25 update pugin 2020-04-16 15:02:55 +03:00
gutosie
55258aaad6 8.25n 2020-04-16 12:42:44 +03:00
gutosie
ca67b93ae1 neoboot 8.02 2020-04-16 11:43:56 +03:00
gutosie
57f75a69d5 8.25 test 2020-04-16 11:43:13 +03:00
gutosie
d8d6f4bf62 Update ver.8.25 2020-04-16 00:48:26 +03:00
gutosie
798be4fbe7 8.25 2020-04-15 23:47:50 +02:00
gutosie
c11ae75dd5 8.25 2020-04-15 23:47:06 +02:00
gutosie
14ab3b1eb9 8.25 2020-04-15 23:45:18 +02:00
gutosie
90c49b7fc2 fix8.24 2020-04-15 20:24:41 +02:00
gutosie
28d3af8ca1 8.24fix 2020-04-15 20:23:29 +02:00
gutosie
623382e603 5.24 fix 2020-04-15 20:22:47 +02:00
gutosie
8f2aaa071d fix8.24 2020-04-15 14:06:40 +03:00
gutosie
fb111278b4 unpak add 8.24 2020-04-15 13:04:10 +02:00
gutosie
6f2330d7af update neoboot 8.24 2020-04-15 14:01:34 +03:00
gutosie
1f5405ef11 8.2_up_init 2020-04-15 13:01:06 +02:00
gutosie
c162e37758 fix_update_8.24 2020-04-15 13:00:23 +02:00
gutosie
d8d7f154ee error 2020-04-15 13:57:34 +03:00
gutosie
f9ad48224a update_8.24 2020-04-15 12:57:07 +02:00
gutosie
09af5aa93c 8.24update 2020-04-15 12:55:35 +02:00
gutosie
df6c87e484 8.24 update 2020-04-15 12:54:31 +02:00
gutosie
b4650d2dbe 8.23 little fix 2020-04-14 18:21:31 +03:00
gutosie
c2e0ba5627 fix 8.23 2 boot 2020-04-14 17:15:34 +03:00
gutosie
d60340aa68 fix. 8.23 update 2020-04-14 15:46:07 +02:00
gutosie
18ec4f5649 update 8.32 fix all 2020-04-14 16:04:34 +03:00
gutosie
096cb1aed2 8.23 2020-04-14 16:03:42 +03:00
gutosie
55223b5899 update 8.23 2020-04-14 15:03:01 +02:00
gutosie
df5322d180 up_8.23 2020-04-14 15:02:19 +02:00
gutosie
ba7374561a fix_bug_8.22 2020-04-13 22:05:38 +02:00
gutosie
5941282c90 up_8.22 2020-04-13 19:39:00 +03:00
gutosie
d450c73f4d 8.22_update_ 2020-04-13 19:37:46 +03:00
gutosie
cb92175fcc fix_update 2020-04-13 19:36:48 +03:00
gutosie
7b7c5f1cbf new update 8.22 change 2020-04-13 19:08:41 +03:00
gutosie
ce2622d38e 8.22_new 2020-04-13 18:06:56 +02:00
gutosie
5aea86e3ce update_8.22 2020-04-13 18:06:17 +02:00
gutosie
1f3b918331 update 8.22 2020-04-13 18:05:22 +02:00
gutosie
db99f9246e old 2020-04-13 19:04:09 +03:00
gutosie
49426a3ddc 8.21 fix.cam_restart 2020-04-11 12:34:15 +02:00
gutosie
7c3130466f 8.21_fix 2020-04-11 10:26:09 +02:00
gutosie
71bc17c6c9 Update extract.py 2020-04-11 10:23:30 +02:00
gutosie
6d11b1b3f7 fix 8.21 2020-04-11 10:02:14 +02:00
gutosie
50e28e41fd fix_bub 2020-04-11 09:48:15 +02:00
gutosie
ed6fbfa73d bug fix 2020-04-11 09:40:27 +02:00
gutosie
fb108c719e update-8.21 2020-04-11 09:19:58 +02:00
gutosie
213e29e518 update 8.21 2020-04-11 09:19:25 +02:00
gutosie
7488fb242f activation_tools 2020-04-11 09:18:05 +02:00
gutosie
d8631f93e0 activation 2020-04-11 09:16:23 +02:00
gutosie
940bc856c5 Udate 8.20 add h9combo 2020-04-02 11:37:51 +03:00
gutosie
6da0b67879 update 8.20 2020-03-31 14:51:37 +03:00
gutosie
9330a549a1 update 8.20 2020-03-31 13:05:34 +03:00
gutosie
28097b4634 8.20 update 2020-03-31 12:52:46 +03:00
gutosie
77f53e5fc8 8.20 2020-03-31 12:52:13 +03:00
gutosie
f6f7ac063b update 8.19 2020-03-29 16:42:22 +03:00
gutosie
da3ab62269 update 8.19 2020-03-29 16:41:39 +03:00
gutosie
123bf515c5 update 8.18 2020-03-08 12:25:20 +02:00
gutosie
5e07023b39 ok 2020-03-08 12:05:23 +02:00
gutosie
6fab77f352 update 8.18 2020-03-08 11:23:54 +02:00
gutosie
4c9261dcf5 update 8.18 2020-03-08 11:23:02 +02:00
gutosie
99ba24ed9c Update README.md 2020-03-08 11:22:07 +02:00
gutosie
85d6d90587 8.17 2020-01-21 00:33:15 +02:00
gutosie
77014049b4 check internet 2020-01-20 22:23:50 +02:00
gutosie
c716ad0b26 update 8.17 2020-01-20 20:34:42 +02:00
gutosie
0eaa58b1ef Delete layout.pyo 2020-01-20 20:32:51 +02:00
gutosie
e50b10d96c Delete sort.pyo 2020-01-20 20:32:42 +02:00
gutosie
627ddaeb40 Delete errors.pyo 2020-01-20 20:32:25 +02:00
gutosie
63f41ba590 Delete defines.pyo 2020-01-20 20:32:10 +02:00
gutosie
2c95a2a88a Delete display.pyo 2020-01-20 20:32:00 +02:00
gutosie
069f2d9573 Delete image.pyo 2020-01-20 20:31:51 +02:00
gutosie
5de1b3c687 Delete extract.pyo 2020-01-20 20:31:29 +02:00
gutosie
f120dd0354 Delete defines.pyo 2020-01-20 20:31:19 +02:00
gutosie
71be4cf0c2 Delete log.pyo 2020-01-20 20:31:09 +02:00
gutosie
7b62e506a9 Delete misc.pyo 2020-01-20 20:31:01 +02:00
gutosie
731d68c919 Delete output.pyo 2020-01-20 20:30:50 +02:00
gutosie
baf570e8b5 Delete walk.pyo 2020-01-20 20:30:42 +02:00
gutosie
4a88f7b4bb Delete common.pyo 2020-01-20 20:30:28 +02:00
gutosie
9e390b6c1d Delete layout.pyo 2020-01-20 20:30:01 +02:00
gutosie
4cbe5d18c9 Delete sort.pyo 2020-01-20 20:29:52 +02:00
gutosie
f21bb74ad0 Delete errors.pyo 2020-01-20 20:29:39 +02:00
gutosie
1d6bde2a27 Delete defines.pyo 2020-01-20 20:29:23 +02:00
gutosie
37ae0e51de Delete display.pyo 2020-01-20 20:29:14 +02:00
gutosie
c0e3698ca4 Delete image.pyo 2020-01-20 20:29:04 +02:00
gutosie
be80ba5d40 Delete extract.pyo 2020-01-20 20:28:33 +02:00
gutosie
4e3410a4bd Delete defines.pyo 2020-01-20 20:28:21 +02:00
gutosie
25aa581d30 Delete log.pyo 2020-01-20 20:28:12 +02:00
gutosie
e07a1ce6b8 Delete misc.pyo 2020-01-20 20:28:02 +02:00
gutosie
e663ed5347 Delete walk.pyo 2020-01-20 20:27:52 +02:00
gutosie
191d645bc7 Delete output.pyo 2020-01-20 20:27:42 +02:00
gutosie
c65cf08443 Delete common.pyo 2020-01-20 20:27:28 +02:00
gutosie
d4f45e6385 Delete argparse_neo.pyo 2020-01-20 20:27:02 +02:00
gutosie
b21fe64f68 Delete __init__.py 2020-01-20 20:26:42 +02:00
gutosie
8db2f4a34c Delete __init__.pyo 2020-01-20 20:26:33 +02:00
gutosie
6f1d6ca8c8 Delete layout.py 2020-01-20 20:26:26 +02:00
gutosie
767da2d096 Delete layout.pyo 2020-01-20 20:26:17 +02:00
gutosie
550b9ed87d Delete sort.py 2020-01-20 20:26:08 +02:00
gutosie
9cdc584e9d Delete sort.pyo 2020-01-20 20:25:55 +02:00
gutosie
56364fa1c0 Delete __init__.py 2020-01-20 20:25:44 +02:00
gutosie
c04ad8d0b1 Delete __init__.pyo 2020-01-20 20:25:35 +02:00
gutosie
1514c6787a Delete errors.py 2020-01-20 20:25:27 +02:00
gutosie
946eb75453 Delete errors.pyo 2020-01-20 20:25:19 +02:00
gutosie
9d9bb01d86 Delete __init__.py 2020-01-20 20:25:08 +02:00
gutosie
5b5513a040 Delete __init__.pyo 2020-01-20 20:25:00 +02:00
gutosie
462fe247ad Delete __init__.py 2020-01-20 20:24:50 +02:00
gutosie
1535bbd25f Delete __init__.pyo 2020-01-20 20:24:42 +02:00
gutosie
665391cffe Delete defines.py 2020-01-20 20:24:33 +02:00
gutosie
4eb5431588 Delete defines.pyo 2020-01-20 20:24:25 +02:00
gutosie
bea62e563f Delete display.py 2020-01-20 20:24:16 +02:00
gutosie
84318153ae Delete display.pyo 2020-01-20 20:24:08 +02:00
gutosie
38650cd1e5 Delete image.py 2020-01-20 20:23:59 +02:00
gutosie
fa9da92e59 Delete image.pyo 2020-01-20 20:23:51 +02:00
gutosie
3a45b20bb3 Delete __init__.py 2020-01-20 20:23:38 +02:00
gutosie
fa35df2b4a Delete __init__.pyo 2020-01-20 20:23:29 +02:00
gutosie
1fc8522154 Delete __init__.py 2020-01-20 20:23:17 +02:00
gutosie
0455ac5088 Delete __init__.pyo 2020-01-20 20:23:09 +02:00
gutosie
a6ffabf023 Delete extract.py 2020-01-20 20:23:00 +02:00
gutosie
c06f9d8e95 Delete extract.pyo 2020-01-20 20:22:51 +02:00
gutosie
edf6bc2e74 Delete __init__.py 2020-01-20 20:22:42 +02:00
gutosie
fb65ebe670 Delete __init__.pyo 2020-01-20 20:22:32 +02:00
gutosie
cb41293fcb Delete defines.py 2020-01-20 20:22:24 +02:00
gutosie
041978294c Delete defines.pyo 2020-01-20 20:22:15 +02:00
gutosie
b44c8efefc Delete log.py 2020-01-20 20:22:07 +02:00
gutosie
417eb40418 Delete log.pyo 2020-01-20 20:21:58 +02:00
gutosie
28717bae11 Delete lzo.so 2020-01-20 20:21:49 +02:00
gutosie
d7fb17aa56 Delete misc.py 2020-01-20 20:21:41 +02:00
gutosie
ecb529c50b Delete misc.pyo 2020-01-20 20:21:31 +02:00
gutosie
de70d0b15a Delete output.py 2020-01-20 20:21:23 +02:00
gutosie
a49767453a Delete output.pyo 2020-01-20 20:21:13 +02:00
gutosie
8743a32d8b Delete walk.py 2020-01-20 20:21:04 +02:00
gutosie
bba3265599 Delete walk.pyo 2020-01-20 20:20:39 +02:00
gutosie
fa81aac508 Delete __init__.pyo 2020-01-20 20:20:28 +02:00
gutosie
e1cf2b7f6e Delete common.py 2020-01-20 20:20:21 +02:00
gutosie
279dff61d5 Delete common.pyo 2020-01-20 20:20:11 +02:00
gutosie
67cdf2635f Delete argparse_neo.py 2020-01-20 20:20:00 +02:00
gutosie
c5adb7731b Delete argparse_neo.pyo 2020-01-20 20:19:51 +02:00
gutosie
90031336ba Delete ubi_extract_files.py 2020-01-20 20:19:43 +02:00
gutosie
37f35c77fd Delete __init__.py 2020-01-20 20:19:29 +02:00
gutosie
0f579ce855 Delete __init__.pyo 2020-01-20 20:19:20 +02:00
gutosie
ddaa45466c Delete __init__.py 2020-01-20 20:18:37 +02:00
gutosie
21499e1eda Delete __init__.pyo 2020-01-20 20:18:28 +02:00
gutosie
da55cfffbe Delete extract.py 2020-01-20 20:18:20 +02:00
gutosie
4257889575 Delete extract.pyo 2020-01-20 20:18:11 +02:00
gutosie
fdda0b843a Delete __init__.py 2020-01-20 20:18:01 +02:00
gutosie
9f6083f055 Delete __init__.pyo 2020-01-20 20:17:53 +02:00
gutosie
0e0eaff810 Delete defines.py 2020-01-20 20:17:44 +02:00
gutosie
7fd3801cac Delete defines.pyo 2020-01-20 20:17:36 +02:00
gutosie
c90dc6d6dc Delete log.py 2020-01-20 20:17:28 +02:00
gutosie
b5811b4dc8 Delete log.pyo 2020-01-20 20:17:15 +02:00
gutosie
b016545258 Delete lzo.so 2020-01-20 20:17:04 +02:00
gutosie
edb57b3c67 Delete misc.py 2020-01-20 20:16:55 +02:00
gutosie
d118e52e47 Delete misc.pyo 2020-01-20 20:16:46 +02:00
gutosie
e67bc611a4 Delete output.py 2020-01-20 20:16:38 +02:00
gutosie
82867de787 Delete output.pyo 2020-01-20 20:16:29 +02:00
gutosie
5db907ac3a Delete walk.py 2020-01-20 20:16:21 +02:00
gutosie
71c60a3738 Delete walk.pyo 2020-01-20 20:16:10 +02:00
gutosie
254bae8518 Delete argparse_neo.py 2020-01-20 20:15:59 +02:00
gutosie
601a635a2c Delete argparse_neo.pyo 2020-01-20 20:15:49 +02:00
gutosie
95b8e9d0e8 Delete ubi_extract_files.py 2020-01-20 20:15:41 +02:00
gutosie
54fed5c67b Delete __init__.pyo 2020-01-20 20:15:31 +02:00
gutosie
ebc1c86476 Delete common.py 2020-01-20 20:15:23 +02:00
gutosie
f84c832d4a Delete common.pyo 2020-01-20 20:15:15 +02:00
gutosie
6bf418fe44 Delete __init__.py 2020-01-20 20:15:02 +02:00
gutosie
bbdce1ef24 Delete __init__.pyo 2020-01-20 20:14:53 +02:00
gutosie
b7efd0fc33 Delete layout.py 2020-01-20 20:14:45 +02:00
gutosie
507fd8a8b6 Delete layout.pyo 2020-01-20 20:14:36 +02:00
gutosie
f66bf799b5 Delete sort.py 2020-01-20 20:14:28 +02:00
gutosie
2b5809ebf6 Delete sort.pyo 2020-01-20 20:14:18 +02:00
gutosie
90f55f3af4 Delete __init__.py 2020-01-20 20:14:07 +02:00
gutosie
8e9d5270d9 Delete __init__.pyo 2020-01-20 20:13:58 +02:00
gutosie
334bd6318c Delete errors.py 2020-01-20 20:13:48 +02:00
gutosie
4c7a06464a Delete errors.pyo 2020-01-20 20:13:40 +02:00
gutosie
93acd58b62 Delete __init__.py 2020-01-20 20:13:28 +02:00
gutosie
0d6bdc5bef Delete __init__.pyo 2020-01-20 20:13:20 +02:00
gutosie
99f849dc59 Delete __init__.py 2020-01-20 20:13:09 +02:00
gutosie
a29aac3975 Delete __init__.pyo 2020-01-20 20:13:00 +02:00
gutosie
ed435dd43d Delete defines.py 2020-01-20 20:12:44 +02:00
gutosie
742bec06df Delete defines.pyo 2020-01-20 20:12:35 +02:00
gutosie
272cb6b98e Delete display.py 2020-01-20 20:12:21 +02:00
gutosie
c61a6e48d0 Delete display.pyo 2020-01-20 20:12:11 +02:00
gutosie
abb285c5e8 Delete image.py 2020-01-20 20:12:01 +02:00
gutosie
e8d6bb20e5 Delete image.pyo 2020-01-20 20:11:51 +02:00
270 changed files with 7720 additions and 10508 deletions

View File

@@ -9,7 +9,7 @@ PluginLanguagePath = 'Extensions/NeoBoot/locale'
def localeInit():
lang = language.getLanguage()[:2]
os.environ['LANGUAGE'] = lang
print '[NeoBoot] set language to ', lang
# print '[NeoBoot] set language to ', lang
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,132 +0,0 @@
#!/bin/sh
TARGET=Flash
NEODEVICE=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
IMAGEKATALOG=ImageBoot
UPLOADKATALOG=ImagesUpload
if [ ! -e $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
mnttest="nouuid"
if [ -e $NEOBOOT/bin/install ]; then
orgimag1=`mount | sed '/sd/!d' | cut -d" " -f1`
selectinstall=`cat $NEOBOOT/bin/install`
for item in $orgimag1; do
selectmnt=`blkid | sed "/$selectinstall/!d" | cut -d":" -f1`
if [ $selectmnt == $item ]; then
echo "selectmnt=" $selectmnt
mnttest="uuid"
mount $selectmnt $NEODEVICE > /dev/null 2>&1
fi
if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then
echo "NEOBOOT hasn't been installed on: " $selectmnt
umount $NEODEVICE > /dev/null 2>&1
else
echo "NEOBOOT has been installed on: " $selectmnt
break;
fi
done
fi
fi
if [ ! -e $NEOBOOTMOUNT$IMAGE.neonextboot ] ; then
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh
fi
if [ ! -e $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > $NEODEVICE$IMAGEKATALOG/.neonextboot
echo "Error - Back to Flash... "
sleep 5; #reboot -f
fi
if [ -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
TARGET=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot`
fi
if [ $TARGET = "Flash" ]; then
echo "BOOTNEO is booting image from " $TARGET
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neowait.mvi > /dev/null 2>&1
sleep 3
ln -sfn /sbin/init.sysvinit /sbin/init
#reboot -f
else
######### test boot new imaga>>>>
VUMODEL=$( cat /proc/stb/info/vumodel )
BOXNAME=$( cat /etc/hostname)
DIRECTORY=ImageBoot
UPLOAD=ImagesUpload
DEVICEBOOT=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
if [ -e $DEVICEBOOT$DIRECTORY/$TARGET/.control_ok ]; then
[ $PL ] && echo "Nie ma bledu, normalny start image..." || echo "No Error - Booting image normal..."
elif [ -e $DEVICEBOOT$DIRECTORY/$TARGET/.control_boot_new_image ]; then
echo "First start image - The first attempt to launch a new image... "; rm -f $DEVICEBOOT$DIRECTORY/$TARGET/.control_boot_new_image
else
if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/boot/zImage.$BOXNAME ]; then
VUMODEL=`cat /proc/stb/info/vumodel`
BOXNAME=`cat /etc/hostname`
if [ ! -e $DEVICEBOOT$DIRECTORY/$TARGET/.control_ok ] ; then
if [ $BOXNAME = "vuultimo4k" ] || [ $BOXNAME = "vusolo4k" ] || [ $BOXNAME = "vuuno4kse" ] || [ $BOXNAME = "vuuno4k" ]; then
if [ -d /proc/stb ] ; then
echo " Install kernel image flash.... " $BOXNAME
dd if=$DEVICEBOOT$UPLOAD/.kernel/flash-kernel-$VUMODEL.bin of=/dev/mmcblk0p1
fi
elif [ $BOXNAME = "vuzero4k" ] ; then
if [ -d /proc/stb ] ; then
echo " Install kernel image flash.... " $BOXNAME
dd if=$DEVICEBOOT$UPLOAD/.kernel/flash-kernel-$VUMODEL.bin of=/dev/mmcblk0p4
fi
elif [ $BOXNAME = "vuduo4k" ] ; then
if [ -d /proc/stb ] ; then
echo " Install kernel image flash.... " $BOXNAME
dd if=$DEVICEBOOT$UPLOAD/.kernel/flash-kernel-$VUMODEL.bin of=/dev/mmcblk0p6
fi
fi
fi
fi
echo "Wrong kernel. Press number 3" > $DEVICEBOOT$UPLOAD/.kernel/used_flash_kernel
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > $DEVICEBOOT$DIRECTORY/.neonextboot
echo "Error - NeoBoot he can not run it image !!! "
echo "Restart STB - Back to Flash... "
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
sleep 10; #reboot -f
fi
######### test boot new image<<<<<
if [ -e $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ] ; then
rm -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
fi
cp -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
#mount $NEODEVICE /media/neoboot
if [ -e $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ] ; then
orgimag=`mount | sed '/sd/!d' | cut -d" " -f1`
for item in $orgimag; do
ohdd=`echo $item | cut -d"/" -f3`
nhdd=`mount | sed "/\$ohdd/!d" | sed q | cut -d" " -f3`
if [ $nhdd == '/media/usb' ] ; then
echo $nhdd
echo "mkdir "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mount "$item $nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "[NeoBOOT] created in /usr/bin the file enigma2_pre_start.sh "
elif [ $nhdd == '/media/hdd' ] ; then
echo $nhdd
echo "mkdir "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mount "$item $nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "[NeoBOOT] created in /usr/bin the file enigma2_pre_start.sh "
else
echo "umount "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mkdir "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mount "$item $nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "[NeoBOOT] enigma2_pre_start.sh "
echo ok
fi
done
fi
chmod 0755 $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "NeoBOOT created the file mount enigma2_pre_start.sh "
sleep 2
fi
exit 0

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,294 +0,0 @@
#!/bin/sh
#script mod by gutosie
#neo init arm
echo "====================================================> "
echo " "
echo " -=*[ NEOBOOT - BOOT UP ]*=- "
echo " NEO BOOT INIT Version: gutosie "
echo " q(-_-)p "
echo " "
echo "====================================================> "
NEODEVICE=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
IMAGEKATALOG=ImageBoot
if [ -e /tmp/.init_reboot ]; then
rm /tmp/.init_reboot
break;
else
if [ -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`IMAGEKATALOG/.neonextboot ] ; then
CELBOOT=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot`
if [ $CELBOOT = "Flash" ]; then
exec /sbin/init.sysvinit $*
exit 0
else
echo " "
break;
fi
fi
LIBDIR=/lib/modules/`uname -r`
if [ ! -d $LIBDIR ]; then
LIBDIR=/lib/modules/`ls /lib/modules | tail -n 1`
fi
echo "Mount kernel filesystems ..."
if [ `mount | grep /proc | wc -l` -lt 1 ]; then
/bin/mount -a -t media
/bin/mount -t proc proc /proc > /dev/null 2>&1
/bin/mount -t sysfs sysfs /sys > /dev/null 2>&1
/sbin/depmod -Ae > /dev/null 2>&1
fi
sleep 1
echo "NeoBoot is starting mdev and mout HDD USB ..."
echo "/sbin/mdev" > /proc/sys/kernel/hotplug
/etc/init.d/mdev > /dev/null 2>&1
sleep 2
mnttest="nouuid"
if [ -e /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/install ]; then
orgimag1=`mount | sed '/sd/!d' | cut -d" " -f1`
selectinstall=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/install`
for item in $orgimag1; do
selectmnt=`blkid | sed "/$selectinstall/!d" | cut -d":" -f1`
if [ $selectmnt == $item ]; then
echo "selectmnt=" $selectmnt
mnttest="uuid"
mount $selectmnt `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` > /dev/null 2>&1
fi
if [ ! -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`ImageBoot ]; then
echo "NeoBoot hasn't been installed on: " $selectmnt
umount `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` > /dev/null 2>&1
else
echo "NeoBoot has been installed on: " $selectmnt
break;
fi
done
fi
if [ ! -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG ]; then
mkdir -p /media/hdd > /dev/null 2>&1
mkdir -p /media/usb > /dev/null 2>&1
fi
if [ ! -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` ]; then
mkdir `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` > /dev/null 2>&1
fi
if [ $mnttest == "nouuid" ] ; then
echo "NeoBoot mount by Device"
DEVICES1=`find /dev/sd??`
for DEVICE in $DEVICES1;
do
if [ -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` ]; then
echo "neoboot checking installation on: " $DEVICE
mount $DEVICE `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` > /dev/null 2>&1
fi
if [ ! -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`ImageBoot ]; then
echo "NeoBoot hasn't been installed on: " $DEVICE
umount `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` > /dev/null 2>&1
else
echo "NeoBoot has been installed on: " $DEVICE
break;
fi
done
elif [ $mnttest == "uuid" ]; then
echo "NeoBoot mount by UUID"
fi
if [ ! -e $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
if [ -e /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh ]; then
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh
echo "___________________neoMountpoint_______________________ "
sleep 1
fi
fi
UPLOAD=ImagesUpload
# mount /dev/sda1 /media/hdd
if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then
echo "Error mounting, Return to image Flash..."
sleep 2
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > $NEODEVICE$IMAGEKATALOG/.neonextboot
echo "Reinstall kernel -Press number 3" > $NEODEVICE$UPLOAD/.kernel/used_flash_kernel
echo " Sending all processes the TERM- KILL signal..."
reboot -f
fi
TARGET=Flash
if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot ]; then
TARGET=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot`
fi
HOSTNAME=`cat /etc/hostname`
if [ ! -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/boot/zImage.$HOSTNAME ]; then
echo "Image launched on a base kernel flash. " > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/kernel_flash
MODPROBE=/sbin/modprobe
echo "Load video and frame buffer modules ..."
#modprobe dvb
echo "NeoBoot is loading modules"
for mod in dvb; do
$MODPROBE $mod
done
# Hack for loading modules which are not loaded on diffrent kernel images
/etc/init.d/modutils.sh
#
echo "Set BOOTLOGO ..."
sleep 1
cat /etc/videomode > /proc/stb/video/videomode
#we must wait until udev has created the video device
(
if [ -d /proc/stb ]; then
while true; do
if [ -e /dev/dvb/adapter0/video0 ]; then
break;
fi;
done;
fi;
[ -e /etc/dropbear/dropbear_rsa_host_key ] && /usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neowait.mvi;
) &
/etc/init.d/bootlogo > /dev/null 2>&1
sleep 2
echo "Driverload end"
if [ -f $LIBDIR/kernel/fs/autofs4/autofs4.ko ]; then
/sbin/insmod $LIBDIR/kernel/fs/autofs4/autofs4.ko > /dev/null 2>&1
fi
fi
if [ -e /tmp/init_reboot ]; then
break;
fi
if [ $TARGET = "Flash" ]; then
echo "NEOBOOT is booting image from " $TARGET
/bin/umount /media/usb > /dev/null 2>&1
/bin/umount /media/hdd > /dev/null 2>&1
/usr/bin/showiframe /usr/share/bootlogo.mvi > /dev/null 2>&1
ln -sfn /sbin/init.sysvinit /sbin/init
echo "----------------------------------"
echo " BOOT UP IMAGE FROM FLASH "
echo "----------------------------------"
else
if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/.control_ok ]; then
echo "No Error - Booting image normal..."
else
if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/.control_boot_new_image ]; then
echo "First start image - The first attempt to launch a new image... ";
rm -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/.control_boot_new_image > /dev/null 2>&1
else
HOSTNAME=`cat /etc/hostname`
if [ ! -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/.control_ok ] ; then
if [ $HOSTNAME = "vuultimo4k" ] || [ $HOSTNAME = "vusolo4k" ] || [ $HOSTNAME = "vuuno4kse" ] || [ $HOSTNAME = "vuuno4k" ]; then
dd if=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$UPLOAD/.kernel/flash-kernel-$HOSTNAME.bin of=/dev/mmcblk0p1
elif [ $HOSTNAME = "vuzero4k" ] ; then
dd if=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$UPLOAD/.kernel/flash-kernel-$HOSTNAME.bin of=/dev/mmcblk0p4
elif [ $HOSTNAME = "vuduo4k" ] ; then
dd if=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$UPLOAD/.kernel/flash-kernel-$HOSTNAME.bin of=/dev/mmcblk0p6
fi
echo "Wrong kernel. Press number 3" > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$UPLOAD/.kernel/used_flash_kernel
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot
sleep 5; reboot -f
fi
fi
fi
echo "NeoBoot is booting" $TARGET " from " `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
if [ -d $NEODEVICE$IMAGEKATALOG/$TARGET ]; then
if [ -f $NEODEVICE$IMAGEKATALOG/$TARGET/etc/init.d/udev ]; then
sed -ie s!"\$4"!"\$3"!g $NEODEVICE$IMAGEKATALOG/$TARGET/etc/init.d/udev
fi
if [ -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/share/bootlogo.mvi ]; then
/usr/bin/showiframe $NEODEVICE$IMAGEKATALOG/$TARGET/usr/share/bootlogo.mvi
else
/usr/bin/showiframe $NEODEVICE$IMAGEKATALOG/$TARGET/usr/share/bootlogo.mvi
fi
sleep 1
/bin/mount -o bind /dev $NEODEVICE$IMAGEKATALOG/$TARGET/dev
/bin/mount -o bind /proc $NEODEVICE$IMAGEKATALOG/$TARGET/proc
/bin/mount -o bind /sys $NEODEVICE$IMAGEKATALOG/$TARGET/sys
rm $NEODEVICE$IMAGEKATALOG/$TARGET$NEODEVICE > /dev/null 2>&1
mkdir $NEODEVICE$IMAGEKATALOG/$TARGET$NEODEVICE > /dev/null 2>&1
rm -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
orgimag=`mount | sed '/sd/!d' | cut -d" " -f1`
for item in $orgimag; do
ohdd=`echo $item | cut -d"/" -f3`
nhdd=`mount | sed "/\$ohdd/!d" | sed q | cut -d" " -f3`
if [ $nhdd == '$NEODEVICE' ]; then
echo $nhdd
echo "mkdir "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mount "$item $nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
else
echo "umount "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mkdir "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mount "$item $nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo ok
fi
done
if [ ! -e $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ]; then
cp -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
fi
chmod 755 `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "NeoBOOT created the file mount enigma2_pre_start.sh "
echo " [NEOBOOT] Use chroot ... exec /usr/sbin/chroot..."
if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/sbin/init.sysvinit ]; then
echo "----------------------------------------"
echo " -=*[ BOOT UP IMAGE FROM DISK ]*=- "
echo "----------------------------------------"
exec /usr/sbin/chroot `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET /sbin/init.sysvinit
elif [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/sbin/init ]; then
exec /usr/sbin/chroot `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET /sbin/init
else
echo " "
echo " NEOBOOT - ERROR !!! "
echo "Not found correctly unpacked image "$TARGET" z partycji " $DEVICE
echo "Check the correctness of unpacked catalogs in the selected one image. "
echo " Back to image Flash... "
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot
echo "Used Kernel: Reinstall kernel !" > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$UPLOAD/.kernel/used_flash_kernel
sleep 15; reboot -f
fi
exit 0
fi
fi
fi
# boot Flash
if [ -f /sbin/init.sysvinit ]; then
#echo "Running /sbin/init.sysvinit"
exec /sbin/init.sysvinit $1
fi
exit 0
;;
esac
exit

View File

@@ -1,275 +0,0 @@
#!/bin/sh
#script mod by gutosie
#neo init arm
echo "====================================================> "
echo " "
echo " -=*[ NEOBOOT - BOOT UP ]*=- "
echo " NEO BOOT INIT Version: gutosie "
echo " q(-_-)p "
echo " "
echo "====================================================> "
NEODEVICE=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
IMAGEKATALOG=ImageBoot
if [ -e /tmp/.init_reboot ]; then
rm /tmp/.init_reboot
break;
else
if [ -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`IMAGEKATALOG/.neonextboot ] ; then
CELBOOT=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot`
if [ $CELBOOT = "Flash" ]; then
exec /sbin/init.sysvinit $*
exit 0
else
echo " "
break;
fi
fi
LIBDIR=/lib/modules/`uname -r`
if [ ! -d $LIBDIR ]; then
LIBDIR=/lib/modules/`ls /lib/modules | tail -n 1`
fi
echo "Mount kernel filesystems ..."
if [ `mount | grep /proc | wc -l` -lt 1 ]; then
/bin/mount -a
/bin/mount -t proc proc /proc > /dev/null 2>&1
/bin/mount -t sysfs sysfs /sys > /dev/null 2>&1
/sbin/depmod -Ae > /dev/null 2>&1
fi
sleep 5
echo "NeoBoot is starting mdev and mout HDD USB ..."
sleep 1
echo "/sbin/mdev" > /proc/sys/kernel/hotplug
/etc/init.d/mdev > /dev/null 2>&1
############..>>>>>>>>
sleep 5
mnttest="nouuid"
if [ -e /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/install ]; then
orgimag1=`mount | sed '/sd/!d' | cut -d" " -f1`
selectinstall=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/install`
for item in $orgimag1; do
selectmnt=`blkid | sed "/$selectinstall/!d" | cut -d":" -f1`
if [ $selectmnt == $item ]; then
echo "selectmnt=" $selectmnt
mnttest="uuid"
mount $selectmnt `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` > /dev/null 2>&1
fi
if [ ! -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`ImageBoot ]; then
echo "NeoBoot hasn't been installed on: " $selectmnt
umount `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` > /dev/null 2>&1
else
echo "NeoBoot has been installed on: " $selectmnt
break;
fi
done
fi
if [ ! -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG ]; then
mkdir -p /media/hdd > /dev/null 2>&1
mkdir -p /media/usb > /dev/null 2>&1
fi
if [ ! -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` ]; then
mkdir `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` > /dev/null 2>&1
fi
if [ $mnttest == "nouuid" ] ; then
echo "NeoBoot mount by Device"
DEVICES1=`find /dev/sd??`
for DEVICE in $DEVICES1;
do
if [ -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` ]; then
echo "neoboot checking installation on: " $DEVICE
mount $DEVICE `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` > /dev/null 2>&1
fi
if [ ! -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`ImageBoot ]; then
echo "NeoBoot hasn't been installed on: " $DEVICE
umount `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` > /dev/null 2>&1
else
echo "NeoBoot has been installed on: " $DEVICE
break;
fi
done
elif [ $mnttest == "uuid" ]; then
echo "NeoBoot mount by UUID"
fi
if [ ! -e $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
if [ -e /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh ]; then
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh
echo "___________________neoMountpoint_______________________ "
sleep 1
fi
fi
MODPROBE=/sbin/modprobe
echo "Load video and frame buffer modules ..."
#modprobe dvb
echo "NeoBoot is loading modules"
for mod in dvb; do
$MODPROBE $mod
done
# Hack for loading modules which are not loaded on diffrent kernel images
/etc/init.d/modutils.sh
#
echo "Set BOOTLOGO ..."
sleep 1
cat /etc/videomode > /proc/stb/video/videomode
#we must wait until udev has created the video device
(
if [ -d /proc/stb ]; then
while true; do
if [ -e /dev/dvb/adapter0/video0 ]; then
break;
fi;
done;
fi;
[ -e /etc/dropbear/dropbear_rsa_host_key ] && /usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neowait.mvi;
) &
/etc/init.d/bootlogo > /dev/null 2>&1
sleep 2
echo "Driverload end"
if [ -f $LIBDIR/kernel/fs/autofs4/autofs4.ko ]; then
/sbin/insmod $LIBDIR/kernel/fs/autofs4/autofs4.ko > /dev/null 2>&1
fi
if [ -e /tmp/init_reboot ]; then
break;
fi
###>>>>>>>>>>>>>>>>>
UPLOAD=ImagesUpload
mount /dev/sda1 /media/hdd
if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then
echo "Error mounting, Return to image Flash..."
sleep 2
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > $NEODEVICE$IMAGEKATALOG/.neonextboot
echo "Reinstall kernel -Press number 3" > $NEODEVICE$UPLOAD/.kernel/used_flash_kernel
echo " Sending all processes the TERM- KILL signal..."
reboot -f
fi
TARGET=Flash
if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot ]; then
TARGET=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot`
fi
if [ $TARGET = "Flash" ]; then
echo "NEOBOOT is booting image from " $TARGET
/bin/umount /media/usb > /dev/null 2>&1
/bin/umount /media/hdd > /dev/null 2>&1
/usr/bin/showiframe /usr/share/bootlogo.mvi > /dev/null 2>&1
sync; ln -sfn /sbin/init.sysvinit /sbin/init; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh
echo "----------------------------------"
echo " BOOT UP IMAGE FROM FLASH "
echo "----------------------------------"
else
echo "NeoBoot is booting" $TARGET " from " `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
if [ -d $NEODEVICE$IMAGEKATALOG/$TARGET ]; then
if [ -f $NEODEVICE$IMAGEKATALOG/$TARGET/etc/init.d/udev ]; then
sed -ie s!"\$4"!"\$3"!g $NEODEVICE$IMAGEKATALOG/$TARGET/etc/init.d/udev
fi
if [ -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/share/bootlogo.mvi ]; then
/usr/bin/showiframe $NEODEVICE$IMAGEKATALOG/$TARGET/usr/share/bootlogo.mvi
else
/usr/bin/showiframe $NEODEVICE$IMAGEKATALOG/$TARGET/usr/share/bootlogo.mvi
fi
sleep 1
/bin/mount -o bind /dev $NEODEVICE$IMAGEKATALOG/$TARGET/dev
/bin/mount -o bind /proc $NEODEVICE$IMAGEKATALOG/$TARGET/proc
/bin/mount -o bind /sys $NEODEVICE$IMAGEKATALOG/$TARGET/sys
rm $NEODEVICE$IMAGEKATALOG/$TARGET$NEODEVICE > /dev/null 2>&1
mkdir $NEODEVICE$IMAGEKATALOG/$TARGET$NEODEVICE > /dev/null 2>&1
rm -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
orgimag=`mount | sed '/sd/!d' | cut -d" " -f1`
for item in $orgimag; do
ohdd=`echo $item | cut -d"/" -f3`
nhdd=`mount | sed "/\$ohdd/!d" | sed q | cut -d" " -f3`
if [ $nhdd == '$NEODEVICE' ]; then
echo $nhdd
echo "mkdir "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mount "$item $nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
else
echo "umount "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mkdir "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mount "$item $nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo ok
fi
done
if [ ! -e $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ]; then
cp -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
fi
chmod 755 `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "NeoBOOT created the file mount enigma2_pre_start.sh "
echo " [NEOBOOT] Use chroot ... exec /usr/sbin/chroot..."
if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/sbin/init.sysvinit ]; then
echo "----------------------------------------"
echo " -=*[ BOOT UP IMAGE FROM DISK ]*=- "
echo "----------------------------------------"
exec /usr/sbin/chroot `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET /sbin/init.sysvinit
elif [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/sbin/init ]; then
exec /usr/sbin/chroot `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET /sbin/init
else
echo " "
echo " NEOBOOT - ERROR !!! "
echo "Not found correctly unpacked image "$TARGET" z partycji " $DEVICE
echo "Check the correctness of unpacked catalogs in the selected one image. "
echo " Back to image Flash... "
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
sync; ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot
echo "Used Kernel: Reinstall kernel !" > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$UPLOAD/.kernel/used_flash_kernel
sleep 15; reboot -f
fi
exit 0
fi
fi
fi
# boot Flash
if [ -f /sbin/init.sysvinit ]; then
#echo "Running /sbin/init.sysvinit"
exec /sbin/init.sysvinit $1
fi
exit 0
;;
esac
exit

View File

@@ -1,318 +0,0 @@
#!/bin/sh
#DESCRIPTION = This script mod. by gutosie
#NeoBoot INIT
#Scrypt Unix Shell - init for neoboot
echo "====================================================> "
echo " "
echo " -=*[ NEOBOOT - BOOT UP ]*=- "
echo " NEO BOOT INIT Version: gutosie "
echo " q(-_-)p "
echo " "
echo "====================================================> "
NEODEVICE=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
IMAGEKATALOG=ImageBoot
if [ -e /tmp/.init_reboot ]; then
rm /tmp/.init_reboot
break;
else
if [ -e $NEODEVICE$IMAGEKATALOG ] ; then
CELBOOT=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot`
if [ $CELBOOT = "Flash" ]; then
exec /sbin/init.sysvinit $*
exit 0
else
echo " "
break;
fi
fi
mknod /dev/sda b 8 0
mknod /dev/sda1 b 8 1
mknod /dev/sda2 b 8 2
mknod /dev/sdb b 8 16
mknod /dev/sdb1 b 8 17
mknod /dev/sdb2 b 8 18
mknod /dev/sdc b 8 32
mknod /dev/sdc1 b 8 33
mknod /dev/sdc2 b 8 34
mknod /dev/sdd b 8 48
mknod /dev/sdd1 b 8 49
mknod /dev/sdd2 b 8 50
mkdir /dev/input
mknod /dev/input/event0 c 13 64
mknod /dev/fb0 c 29 0
mkdir /dev/fb
ln -s ../fb0 /dev/fb/0
sleep 1
LIBDIR=/lib/modules/`uname -r`
if [ ! -d $LIBDIR ]; then
LIBDIR=/lib/modules/`ls /lib/modules | tail -n 1`
fi
if [ `mount | grep /proc | wc -l` -lt 1 ]; then
/bin/mount -t proc proc /proc > /dev/null 2>&1
/bin/mount -t sysfs sysfs /sys > /dev/null 2>&1
/sbin/depmod -Ae > /dev/null 2>&1
fi
echo "NeoBoot is starting mdev and mout HDD USB ..."
echo "/sbin/mdev" > /proc/sys/kernel/hotplug
/etc/init.d/mdev > /dev/null 2>&1
sleep 5
echo " "
############..>>>>>>>>
echo "Search NEOBOOT... "
mnttest="nouuid"
if [ -e $NEOBOOT/bin/install ]; then
orgimag1=`mount | sed '/sd/!d' | cut -d" " -f1`
selectinstall=`cat $NEOBOOT/bin/install`
for item in $orgimag1; do
selectmnt=`blkid | sed "/$selectinstall/!d" | cut -d":" -f1`
if [ $selectmnt == $item ]; then
echo "selectmnt=" $selectmnt
mnttest="uuid"
mount $selectmnt $NEODEVICE > /dev/null 2>&1
fi
if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then
echo "NEOBOOT hasn't been installed on: " $selectmnt
umount $NEODEVICE > /dev/null 2>&1
else
echo "NEOBOOT has been installed on: " $selectmnt
break;
fi
done
fi
if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then
mkdir $NEODEVICE > /dev/null 2>&1
fi
if [ $mnttest="nouuid" ] ; then
echo "NeoBoot mount by Device"
DEVICES1=`find /dev/sd??`
for DEVICE in $DEVICES1;
do
if [ -e $NEODEVICE ]; then
echo "neoboot checking installation on: " $DEVICE
mount $DEVICE $NEODEVICE > /dev/null 2>&1
fi
if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then
echo "NeoBoot hasn't been installed on: " $DEVICE
umount $NEODEVICE > /dev/null 2>&1
else
echo "NEOBOOTt has been installed on: " $DEVICE
break;
fi
done
elif [ $mnttest="uuid" ]; then
echo "NEOBOOT mount by UUID"
fi
###>>>>>>>>>>>>>>>>>
#dodatkowe szukanie neoboota
#mount /dev/sdb1 $NEO > /dev/null 2>&1 # <<< tu mozesz zmienic sdb1 i wpisac Twoje montowanie dysku dla neoboot
MODPROBE=/sbin/modprobe
echo "Load video and frame buffer modules ..."
modprobe dvb
echo "NeoBoot is loading modules"
for mod in dvb; do
echo "=======================> NeoBoot is loading modules"
$MODPROBE $mod
done
# Hack for loading modules which are not loaded on diffrent kernel images
/etc/init.d/sysfs.sh
/etc/init.d/modutils.sh
#
echo "Set BOOTLOGO ..."
sleep 1
cat /etc/videomode > /proc/stb/video/videomode
#we must wait until udev has created the video device
(
if [ -d /proc/stb ]; then
while true; do
if [ -e /dev/dvb/adapter0/video0 ]; then
break;
fi;
done;
fi;
[ -e /etc/dropbear/dropbear_rsa_host_key ] && /usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neowait.mvi;
) &
/etc/init.d/bootlogo > /dev/null 2>&1
sleep 2
echo "Driverload end"
if [ -f $LIBDIR/kernel/fs/autofs4/autofs4.ko ]; then
/sbin/insmod $LIBDIR/kernel/fs/autofs4/autofs4.ko > /dev/null 2>&1
fi
if [ -e /tmp/init_reboot ]; then
break;
fi
if [ -e /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/neobm ]; then
echo " Neo-Boot start boot manager "
echo " Waiting to change image - 20s "
echo " "
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neologo.mvi > /dev/null 2>&1
sleep 1
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/neobm > /dev/null 2>&1
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/fbclear > /dev/null 2>&1
fi
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>
UPLOAD=ImagesUpload
if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then
echo "Error mounting, Return to image Flash..."
sleep 2
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > $NEODEVICE$IMAGEKATALOG/.neonextboot
echo "Reinstall kernel -Press number 3" > $NEODEVICE$UPLOAD/.kernel/used_flash_kernel
echo " Sending all processes the TERM- KILL signal..."
reboot -f
fi
#ln -sfn /sbin/init.sysvinit /sbin/init #<<<<___after adding it will return to image flash
TARGET=Flash
if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot ]; then
TARGET=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot`
fi
if [ $TARGET = "Flash" ]; then
echo "NEOBOOT is booting image from " $TARGET
/bin/umount /media/usb > /dev/null 2>&1
/bin/umount /media/hdd > /dev/null 2>&1
/usr/bin/showiframe /usr/share/bootlogo.mvi > /dev/null 2>&1
sync; ln -sfn /sbin/init.sysvinit /sbin/init#; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom
echo "----------------------------------"
echo " BOOT UP IMAGE FROM FLASH "
echo "----------------------------------"
else
######### test boot new imaga>>>>
if [ -e $NEODEVICE$IMAGEKATALOG/$TARGET/.control_ok ]; then
[ $PL ] && echo "Nie ma bledu, normalny start image..." || echo "No Error - Booting image normal..."
else
if [ -e $NEODEVICE$IMAGEKATALOG/$TARGET/.control_boot_new_image ]; then
echo "First start image - The first attempt to launch a new image... "; rm -f $NEODEVICE$IMAGEKATALOG/$TARGET/.control_boot_new_image
else
echo "Wrong kernel. Press number 3" > $NEODEVICE$UPLOAD/.kernel/used_flash_kernel
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > $NEODEVICE$IMAGEKATALOG/.neonextboot
echo "Error - NeoBoot he can not run it image !!! "
echo "Restart STB - Back to Flash... "
echo "NeoBoot is booting" $TARGET
sleep 5; reboot -f
fi
fi
######### test boot new image<<<<<
echo "NeoBoot is booting" $TARGET " from " `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
if [ -d $NEODEVICE$IMAGEKATALOG/$TARGET ]; then
if [ -f $NEODEVICE$IMAGEKATALOG/$TARGET/etc/init.d/udev ]; then
sed -ie s!"\$4"!"\$3"!g $NEODEVICE$IMAGEKATALOG/$TARGET/etc/init.d/udev
fi
if [ -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/share/bootlogo.mvi ]; then
/usr/bin/showiframe $NEODEVICE$IMAGEKATALOG/$TARGET/usr/share/bootlogo.mvi
else
/usr/bin/showiframe $NEODEVICE$IMAGEKATALOG/$TARGET/usr/share/bootlogo.mvi
fi
sleep 1
/bin/mount -o bind /dev $NEODEVICE$IMAGEKATALOG/$TARGET/dev
/bin/mount -o bind /proc $NEODEVICE$IMAGEKATALOG/$TARGET/proc
/bin/mount -o bind /sys $NEODEVICE$IMAGEKATALOG/$TARGET/sys
rm $NEODEVICE$IMAGEKATALOG/$TARGET$NEODEVICE > /dev/null 2>&1
mkdir $NEODEVICE$IMAGEKATALOG/$TARGET$NEODEVICE > /dev/null 2>&1
if [ -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ]; then
rm -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh > /dev/null 2>&1
fi
cp -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
orgimag=`mount | sed '/sd/!d' | cut -d" " -f1`
for item in $orgimag; do
ohdd=`echo $item | cut -d"/" -f3`
nhdd=`mount | sed "/\$ohdd/!d" | sed q | cut -d" " -f3`
if [ $nhdd == '`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`' ]; then
echo $nhdd
echo "mkdir "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mount "$item $nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
else
echo "umount "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mkdir "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mount "$item $nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo ok
fi
done
chmod 755 `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "NeoBOOT created the file mount enigma2_pre_start.sh "
echo " [NEOBOOT] Use chroot ... exec /usr/sbin/chroot..."
if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/sbin/init.sysvinit ]; then
echo "----------------------------------------"
echo " -=*[ BOOT UP IMAGE FROM DISK ]*=- "
echo "----------------------------------------"
exec /usr/sbin/chroot `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET /sbin/init.sysvinit
elif [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/sbin/init ]; then
exec /usr/sbin/chroot `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET /sbin/init
else
echo " "
echo " NEOBOOT - ERROR !!! "
echo "Not found correctly unpacked image "$TARGET" z partycji " $DEVICE
echo "Check the correctness of unpacked catalogs in the selected one image. "
echo " Back to image Flash... "
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
sync; ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot
echo "Used Kernel: Reinstall kernel !" > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$UPLOAD/.kernel/used_flash_kernel
sleep 15; reboot -f
fi
exit 0
fi
fi
fi
# boot Flash
if [ -f /sbin/init.sysvinit ]; then
#echo "Running /sbin/init.sysvinit"
exec /sbin/init.sysvinit $1
fi
exit 0
;;
esac
exit

View File

@@ -1,309 +0,0 @@
#!/bin/sh
#DESCRIPTION = This script mod. by gutosie
#NeoBoot INIT
#Scrypt Unix Shell - init for neoboot
echo "====================================================> "
echo " "
echo " -=*[ NEOBOOT - BOOT UP ]*=- "
echo " NEO BOOT INIT Version: gutosie "
echo " q(-_-)p "
echo " "
echo "====================================================> "
NEODEVICE=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
IMAGEKATALOG=ImageBoot
if [ -e /tmp/.init_reboot ]; then
rm /tmp/.init_reboot
break;
else
if [ -e $NEODEVICE$IMAGEKATALOG ] ; then
CELBOOT=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot`
if [ $CELBOOT = "Flash" ]; then
exec /sbin/init.sysvinit $*
exit 0
else
echo " "
break;
fi
fi
mknod /dev/sda b 8 0
mknod /dev/sda1 b 8 1
mknod /dev/sda2 b 8 2
mknod /dev/sdb b 8 16
mknod /dev/sdb1 b 8 17
mknod /dev/sdb2 b 8 18
mknod /dev/sdc b 8 32
mknod /dev/sdc1 b 8 33
mknod /dev/sdc2 b 8 34
mknod /dev/sdd b 8 48
mknod /dev/sdd1 b 8 49
mknod /dev/sdd2 b 8 50
mkdir /dev/input
mknod /dev/input/event0 c 13 64
mknod /dev/fb0 c 29 0
mkdir /dev/fb
ln -s ../fb0 /dev/fb/0
sleep 1
LIBDIR=/lib/modules/`uname -r`
if [ ! -d $LIBDIR ]; then
LIBDIR=/lib/modules/`ls /lib/modules | tail -n 1`
fi
if [ `mount | grep /proc | wc -l` -lt 1 ]; then
/bin/mount -t proc proc /proc > /dev/null 2>&1
/bin/mount -t sysfs sysfs /sys > /dev/null 2>&1
/sbin/depmod -Ae > /dev/null 2>&1
fi
echo "NeoBoot is starting mdev and mout HDD USB ..."
echo "/sbin/mdev" > /proc/sys/kernel/hotplug
/etc/init.d/mdev > /dev/null 2>&1
sleep 5
echo " "
############..>>>>>>>>
echo "Search NEOBOOT... "
mnttest="nouuid"
if [ -e $NEOBOOT/bin/install ]; then
orgimag1=`mount | sed '/sd/!d' | cut -d" " -f1`
selectinstall=`cat $NEOBOOT/bin/install`
for item in $orgimag1; do
selectmnt=`blkid | sed "/$selectinstall/!d" | cut -d":" -f1`
if [ $selectmnt == $item ]; then
echo "selectmnt=" $selectmnt
mnttest="uuid"
mount $selectmnt $NEODEVICE > /dev/null 2>&1
fi
if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then
echo "NEOBOOT hasn't been installed on: " $selectmnt
umount $NEODEVICE > /dev/null 2>&1
else
echo "NEOBOOT has been installed on: " $selectmnt
break;
fi
done
fi
if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then
mkdir $NEODEVICE > /dev/null 2>&1
fi
if [ $mnttest="nouuid" ] ; then
echo "NeoBoot mount by Device"
DEVICES1=`find /dev/sd??`
for DEVICE in $DEVICES1;
do
if [ -e $NEODEVICE ]; then
echo "neoboot checking installation on: " $DEVICE
mount $DEVICE $NEODEVICE > /dev/null 2>&1
fi
if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then
echo "NeoBoot hasn't been installed on: " $DEVICE
umount $NEODEVICE > /dev/null 2>&1
else
echo "NEOBOOTt has been installed on: " $DEVICE
break;
fi
done
elif [ $mnttest="uuid" ]; then
echo "NEOBOOT mount by UUID"
fi
###>>>>>>>>>>>>>>>>>
HOSTNAME=`cat /etc/hostname`
if [ ! -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/boot/$HOSTNAME.vmlinux.gz ]; then
echo "Image launched on a base kernel flash. " > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/kernel_flash
MODPROBE=/sbin/modprobe
echo "Load video and frame buffer modules ..."
modprobe dvb
echo "NeoBoot is loading modules"
for mod in dvb; do
$MODPROBE $mod
done
# Hack for loading modules which are not loaded on diffrent kernel images
/etc/init.d/modutils.sh
#
echo "Set BOOTLOGO ..."
sleep 1
cat /etc/videomode > /proc/stb/video/videomode
#we must wait until udev has created the video device
(
if [ -d /proc/stb ]; then
while true; do
if [ -e /dev/dvb/adapter0/video0 ]; then
break;
fi;
done;
fi;
[ -e /etc/dropbear/dropbear_rsa_host_key ] && /usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neowait.mvi;
) &
/etc/init.d/bootlogo > /dev/null 2>&1
sleep 2
echo "Driverload end"
if [ -f $LIBDIR/kernel/fs/autofs4/autofs4.ko ]; then
/sbin/insmod $LIBDIR/kernel/fs/autofs4/autofs4.ko > /dev/null 2>&1
fi
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/fbclear > /dev/null 2>&1
fi
#dodatkowe szukanie neoboota
#mount /dev/sdb1 $NEO > /dev/null 2>&1 # <<< tu mozesz zmienic sdb1 i wpisac Twoje montowanie dysku dla neoboot
if [ -e /tmp/init_reboot ]; then
break;
fi
UPLOAD=ImagesUpload
if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then
echo "Error mounting, Return to image Flash..."
sleep 2
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > $NEODEVICE$IMAGEKATALOG/.neonextboot
echo "Reinstall kernel -Press number 3" > $NEODEVICE$UPLOAD/.kernel/used_flash_kernel
echo " Sending all processes the TERM- KILL signal..."
reboot -f
fi
#ln -sfn /sbin/init.sysvinit /sbin/init #<<<<___after adding it will return to image flash
TARGET=Flash
if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot ]; then
TARGET=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot`
fi
if [ $TARGET = "Flash" ]; then
echo "NEOBOOT is booting image from " $TARGET
/bin/umount /media/usb > /dev/null 2>&1
/bin/umount /media/hdd > /dev/null 2>&1
/usr/bin/showiframe /usr/share/bootlogo.mvi > /dev/null 2>&1
sync; ln -sfn /sbin/init.sysvinit /sbin/init#; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom
echo "----------------------------------"
echo " BOOT UP IMAGE FROM FLASH "
echo "----------------------------------"
else
######### test boot new imaga>>>>
if [ -e $NEODEVICE$IMAGEKATALOG/$TARGET/.control_ok ]; then
[ $PL ] && echo "Nie ma bledu, normalny start image..." || echo "No Error - Booting image normal..."
else
if [ -e $NEODEVICE$IMAGEKATALOG/$TARGET/.control_boot_new_image ]; then
echo "First start image - The first attempt to launch a new image... "; rm -f $NEODEVICE$IMAGEKATALOG/$TARGET/.control_boot_new_image
else
echo "Wrong kernel. Press number 3" > $NEODEVICE$UPLOAD/.kernel/used_flash_kernel
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > $NEODEVICE$IMAGEKATALOG/.neonextboot
echo "Error - NeoBoot he can not run it image !!! "
echo "Restart STB - Back to Flash... "
echo "NeoBoot is booting" $TARGET
sleep 5; reboot -f
fi
fi
######### test boot new image<<<<<
echo "NeoBoot is booting" $TARGET " from " `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
if [ -d $NEODEVICE$IMAGEKATALOG/$TARGET ]; then
if [ -f $NEODEVICE$IMAGEKATALOG/$TARGET/etc/init.d/udev ]; then
sed -ie s!"\$4"!"\$3"!g $NEODEVICE$IMAGEKATALOG/$TARGET/etc/init.d/udev
fi
if [ -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/share/bootlogo.mvi ]; then
/usr/bin/showiframe $NEODEVICE$IMAGEKATALOG/$TARGET/usr/share/bootlogo.mvi
else
/usr/bin/showiframe $NEODEVICE$IMAGEKATALOG/$TARGET/usr/share/bootlogo.mvi
fi
sleep 1
/bin/mount -o bind /dev $NEODEVICE$IMAGEKATALOG/$TARGET/dev
/bin/mount -o bind /proc $NEODEVICE$IMAGEKATALOG/$TARGET/proc
/bin/mount -o bind /sys $NEODEVICE$IMAGEKATALOG/$TARGET/sys
rm $NEODEVICE$IMAGEKATALOG/$TARGET$NEODEVICE > /dev/null 2>&1
mkdir $NEODEVICE$IMAGEKATALOG/$TARGET$NEODEVICE > /dev/null 2>&1
if [ -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ]; then
rm -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh > /dev/null 2>&1
fi
orgimag=`mount | sed '/sd/!d' | cut -d" " -f1`
for item in $orgimag; do
ohdd=`echo $item | cut -d"/" -f3`
nhdd=`mount | sed "/\$ohdd/!d" | sed q | cut -d" " -f3`
if [ $nhdd == '`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`' ]; then
echo $nhdd
echo "mkdir "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mount "$item $nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
else
echo "umount "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mkdir "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mount "$item $nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo ok
fi
done
if [ ! -e $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ]; then
cp -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
fi
chmod 755 `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "NeoBOOT created the file mount enigma2_pre_start.sh "
echo " [NEOBOOT] Use chroot ... exec /usr/sbin/chroot..."
if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/sbin/init.sysvinit ]; then
echo "----------------------------------------"
echo " -=*[ BOOT UP IMAGE FROM DISK ]*=- "
echo "----------------------------------------"
exec /usr/sbin/chroot `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET /sbin/init.sysvinit
elif [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/sbin/init ]; then
exec /usr/sbin/chroot `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET /sbin/init
else
echo " "
echo " NEOBOOT - ERROR !!! "
echo "Not found correctly unpacked image "$TARGET" z partycji " $DEVICE
echo "Check the correctness of unpacked catalogs in the selected one image. "
echo " Back to image Flash... "
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
sync; ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot
echo "Used Kernel: Reinstall kernel !" > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$UPLOAD/.kernel/used_flash_kernel
sleep 15; reboot -f
fi
exit 0
fi
fi
fi
# boot Flash
if [ -f /sbin/init.sysvinit ]; then
#echo "Running /sbin/init.sysvinit"
exec /sbin/init.sysvinit $1
fi
exit 0
;;
esac
exit

Binary file not shown.

View File

@@ -1,189 +0,0 @@
from re import sub
from Tools.Directories import fileExists, resolveFilename, SCOPE_CURRENT_SKIN
import xml.etree.cElementTree
entities = [('&#228;', u'\xe4'),
('&auml;', u'\xe4'),
('&#252;', u'\xfc'),
('&uuml;', u'\xfc'),
('&#246;', u'\xf6'),
('&ouml;', u'\xf6'),
('&#196;', u'\xc4'),
('&Auml;', u'\xc4'),
('&#220;', u'\xdc'),
('&Uuml;', u'\xdc'),
('&#214;', u'\xd6'),
('&Ouml;', u'\xd6'),
('&#223;', u'\xdf'),
('&szlig;', u'\xdf'),
('&#8230;', u'...'),
('&#8211;', u'-'),
('&#160;', u' '),
('&#34;', u'"'),
('&#38;', u'&'),
('&#39;', u"'"),
('&#60;', u'<'),
('&#62;', u'>'),
('&lt;', u'<'),
('&gt;', u'>'),
('&nbsp;', u' '),
('&amp;', u'&'),
('&quot;', u'"'),
('&apos;', u"'")]
def nab_strip_html(html):
html = html.replace('\n', ' ')
html = sub('\\s\\s+', ' ', html)
html = sub('<br(\\s+/)?>', '\n', html)
html = sub('</?(p|ul|ol)(\\s+.*?)?>', '\n', html)
html = sub('<li(\\s+.*?)?>', '-', html)
html = html.replace('</li>', '\n')
return nab_strip_pass1(html)
def nab_strip_pass1(html):
html = sub('<(.*?)>', '', html)
html.replace('&#196;', '\xc3\x84')
html.replace('&#228;', '\xc3\xa4')
html.replace('&auml;', '\xc3\xa4')
html.replace('&#252;', '\xc3\xbc')
html.replace('&uuml;', '\xc3\xbc')
html.replace('&#246;', '\xc3\xb6')
html.replace('&ouml;', '\xc3\xb6')
html.replace('&#196;', '\xc3\x84')
html.replace('&Auml;', '\xc3\x84')
html.replace('&#220;', '\xc3\x9c')
html.replace('&Uuml;', '\xc3\x9c')
html.replace('&#214;', '\xc3\x96')
html.replace('&Ouml;', '\xc3\x96')
html.replace('&#223;', '\xc3\x9f')
html.replace('&szlig;', '\xc3\x9f')
html.replace('&lt;', '<')
html.replace('&gt;', '>')
html.replace('&nbsp;', ' ')
html.replace('&amp;', '&')
html.replace('&quot;', '"')
html.replace('&apos;', "'")
return html
def nab_Read_CCCinfoCfg():
myhost = '127.0.0.1'
myuser = mypass = ''
myport = '16001'
if fileExists('/etc/delcccaminfo'):
f = open('/etc/delcccaminfo', 'r')
for line in f.readlines():
line = line.strip()
if line.find('HOST ADDRESS:') != -1:
myhost = line[13:]
elif line.find('WEBINFO USERNAME:') != -1:
myuser = line[17:]
elif line.find('WEBINFO PASSWORD:') != -1:
mypass = line[17:]
elif line.find('WEBINFO LISTEN PORT:') != -1:
myport = line[20:]
f.close()
myurl = 'http://' + myhost + ':' + myport
if myuser and mypass:
myurl = 'http://' + myuser + ':' + mypass + '@' + myhost + ':' + myport
return [myhost,
myuser,
mypass,
myport,
myurl]
def nab_Write_CCCinfoCfg(mycfg):
out = open('/etc/delcccaminfo', 'w')
strview = 'HOST ADDRESS:' + mycfg[0] + '\n'
out.write(strview)
strview = 'WEBINFO USERNAME:' + mycfg[1] + '\n'
out.write(strview)
strview = 'WEBINFO PASSWORD:' + mycfg[2] + '\n'
out.write(strview)
strview = 'WEBINFO LISTEN PORT:' + mycfg[3] + '\n'
out.write(strview)
out.close()
def DeliteGetSkinPath():
myskinpath = resolveFilename(SCOPE_CURRENT_SKIN, '')
if myskinpath == '/usr/share/enigma2/':
myskinpath = '/usr/share/enigma2/skin_default/'
return myskinpath
def nab_Detect_Machine():
machine = 'dm8000'
if fileExists('/etc/bhmachine'):
f = open('/etc/bhmachine', 'r')
machine = f.readline().strip()
f.close()
return machine
def BhU_get_Version():
ver = ''
if fileExists('/boot/blackhole/version'):
f = open('/boot/blackhole/version', 'r')
ver = f.readline().strip()
f.close()
return ver
def BhU_check_proc_version():
ver = ''
if fileExists('/boot/blackhole/version'):
f = open('/boot/blackhole/version', 'r')
ver = f.readline().strip()
f.close()
return ver
def BhU_checkSkinVersion(skinfile):
version = '2.0.0'
authors = ['Army', 'Matrix10', 'capa']
ret = 'Sorry this skin is not compatible with the current Black Hole image version.'
curversion = int(version.replace('.', ''))
fullfile = '/usr/share/enigma2/' + skinfile
checkver = False
checkauth = False
if fileExists(fullfile):
f = open(fullfile)
for line in f.readlines():
if line.find('black hole version:') != -1:
parts = line.strip().split(':')
ver = int(parts[1].strip().replace('.', ''))
if ver >= curversion:
checkver = True
elif line.find('skin author:') != -1:
parts = line.strip().split(':')
auth = parts[1].strip()
for a in authors:
if a == auth:
checkauth = True
f.close()
if checkver == True:
if checkauth == True:
ret = 'passed'
return ret
def BhU_find_hdd():
hdd = ''
hdds = ['sda',
'sdb',
'sdc',
'sdd',
'sde',
'sdf']
for device in hdds:
filename = '/sys/block/%s/removable' % device
if fileExists(filename):
if file(filename).read().strip() == '0':
hdd = device
break
return hdd

View File

@@ -1 +0,0 @@
1.4.1

Binary file not shown.

View File

@@ -1,6 +1,6 @@
import sys, extract
if len(sys.argv) < 15:
if len(sys.argv) < 14:
pass
else:
extract.NEOBootMainEx(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4], sys.argv[5], sys.argv[6], sys.argv[7], sys.argv[8], sys.argv[9], sys.argv[10], sys.argv[11], sys.argv[12], sys.argv[13], sys.argv[14], sys.argv[15])
extract.NEOBootMainEx(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4], sys.argv[5], sys.argv[6], sys.argv[7], sys.argv[8], sys.argv[9], sys.argv[10], sys.argv[11], sys.argv[12], sys.argv[13] , sys.argv[14])

File diff suppressed because it is too large Load Diff

View File

@@ -1,14 +1,23 @@
# -*- coding: utf-8 -*-
#from __future__ import print_function
#from Plugins.Extensions.NeoBoot.__init__ import _
from Plugins.Extensions.NeoBoot.__init__ import _
import os
import time
from Tools.Directories import fileExists, pathExists#, fileCheck
from Tools.Directories import fileExists, pathExists, fileCheck
from Tools.CList import CList
from Components.SystemInfo import SystemInfo
from Components.Console import Console
from Task import LoggingTask
try:
from Task import LoggingTask
except:
from Components.Task import LoggingTask
import Task
from Screens.Screen import Screen
from Components.ActionMap import ActionMap
from Components.MenuList import MenuList
from Components.Label import Label
from Components.Pixmap import Pixmap
from Screens.MessageBox import MessageBox
def readFile(filename):
file = open(filename)
@@ -374,19 +383,22 @@ class Harddisk():
task.weighting = 1
task = MkfsTask(job, _('Creating filesystem'))
big_o_options = ['dir_index']
if isFileSystemSupported('ext4'):
task.setTool('mkfs.ext4')
if size > 20000:
try:
version = map(int, open('/proc/version', 'r').read().split(' ', 4)[2].split('.', 2)[:2])
if version[0] > 3 or version[0] > 2 and version[1] >= 2:
task.args += ['-C', '262144']
big_o_options.append('bigalloc')
except Exception as ex:
print 'Failed to detect Linux version:', ex
else:
task.setTool('mkfs.ext3')
###__blokada hash dla ext4 >>>
# if isFileSystemSupported('ext4'):
# task.setTool('mkfs.ext4')
# if size > 20000:
# try:
# version = map(int, open('/proc/version', 'r').read().split(' ', 4)[2].split('.', 2)[:2])
# if version[0] > 3 or version[0] > 2 and version[1] >= 2:
# task.args += ['-C', '262144']
# big_o_options.append('bigalloc')
# except Exception as ex:
# print 'Failed to detect Linux version:', ex
# else:
# task.setTool('mkfs.ext3')
task.setTool('mkfs.ext3')
if size > 250000:
task.args += ['-T',
'largefile',
@@ -939,6 +951,80 @@ class MkfsTask(Task.LoggingTask):
self.log.append(data)
###########################__From HarddiskSetup_################################
class HarddiskSetup(Screen):
def __init__(self, session, hdd, action, text, question):
Screen.__init__(self, session)
self.action = action
self.question = question
self.setTitle(_('Setup hard disk'))
self['model'] = Label(_('Model: ') + hdd.model())
self['capacity'] = Label(_('Capacity: ') + hdd.capacity())
self['bus'] = Label(_('Bus: ') + hdd.bus())
self['key_red'] = Label(_('Cancel'))
self['key_green'] = Label(text)
self['actions'] = ActionMap(['OkCancelActions'], {'ok': self.hddQuestion,
'cancel': self.close})
self['shortcuts'] = ActionMap(['ShortcutActions'], {'red': self.close,
'green': self.hddQuestion})
def hddQuestion(self):
message = self.question + '\n' + _('You can continue watching TV etc. while this is running.')
self.session.openWithCallback(self.hddConfirmed, MessageBox, message)
def hddConfirmed(self, confirmed):
if not confirmed:
return
try:
from Task import job_manager
except:
from Components.Task import job_manager
try:
job = self.action()
job_manager.AddJob(job, onSuccess=job_manager.popupTaskView)
from Screens.TaskView import JobView
self.session.open(JobView, job, afterEventChangeable=False)
except Exception as ex:
self.session.open(MessageBox, str(ex), type=MessageBox.TYPE_ERROR, timeout=10)
self.close()
class HarddiskSelection(Screen):
def __init__(self, session):
Screen.__init__(self, session)
self.setTitle(_('Select hard disk'))
self.skinName = 'HarddiskSelection'
if harddiskmanager.HDDCount() == 0:
tlist = []
tlist.append((_('no storage devices found'), 0))
self['hddlist'] = MenuList(tlist)
else:
self['hddlist'] = MenuList(harddiskmanager.HDDList())
self['key_red'] = Label(_('Cancel'))
self['key_green'] = Label(_('Select'))
self['actions'] = ActionMap(['OkCancelActions'], {'ok': self.okbuttonClick,
'cancel': self.close})
self['shortcuts'] = ActionMap(['ShortcutActions'], {'red': self.close,
'green': self.okbuttonClick})
def doIt(self, selection):
self.session.openWithCallback(self.close, HarddiskSetup, selection, action=selection.createInitializeJob, text=_('Initialize'), question=_('Do you really want to initialize the device?\nAll data on the disk will be lost!'))
def okbuttonClick(self):
selection = self['hddlist'].getCurrent()
if selection[1] != 0:
self.doIt(selection[1])
class HarddiskFsckSelection(HarddiskSelection):
def doIt(self, selection):
self.session.openWithCallback(self.close, HarddiskSetup, selection, action=selection.createCheckJob, text=_('Check'), question=_('Do you really want to check the filesystem?\nThis could take lots of time!'))
###########################__end HarddiskSetup_################################
harddiskmanager = HarddiskManager()
def isSleepStateDevice(device):
@@ -965,4 +1051,4 @@ def internalHDDNotSleeping(external = False):
harddiskmanager = HarddiskManager()
SystemInfo['ext4'] = isFileSystemSupported('ext4') or isFileSystemSupported('ext3')
SystemInfo['ext4'] = isFileSystemSupported('ext4') or isFileSystemSupported('ext3')

View File

@@ -1,19 +0,0 @@
#!/bin/sh
IMAGE=ImageBoot
NEOBOOTMOUNT=$( cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location)
if [ -f $NEOBOOTMOUNT/NeoBoot_Backup.tar.gz ] ; then
rm -R $NEOBOOTMOUNT/NeoBoot_Backupt.tar.gz
/bin/tar -czf $NEOBOOTMOUNT/NeoBoot_Backup.tar.gz /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot*/
echo " "
echo "Kopia o nazwie NeoBoot_Backup.tar.gz zostala utworzona w lokalizacji:" $NEOBOOTMOUNT" . "
echo " "
else
/bin/tar -czf $NEOBOOTMOUNT/NeoBoot_Backup.tar.gz /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot*/
echo " "
echo "Kopia o nazwie NeoBoot_Backup.tar.gz zostala utworzona w lokalizacji:" $NEOBOOTMOUNT" . "
echo " "
fi
exit 0

View File

@@ -1,34 +0,0 @@
#!/bin/sh
# script gutosie
IMAGEKATALOG=ImageBoot
NEODEVICE=$( cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location)
if [ ! -e /usr/bin/ipkg ]; then
ln -sfn /usr/bin/opkg /usr/bin/ipkg
fi
if [ ! -e /usr/bin/ipkg-cl ]; then
ln -sfn /usr/bin/opkg-cl /usr/bin/ipkg-cl
fi
#echo "Start network and telnet ..."
#/etc/init.d/networking stop; sync; /etc/init.d/networking start;
if [ -f /etc/init.d/inadyn-mt ] ; then
/etc/init.d/inadyn-mt start
fi
if [ -e /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh ]; then
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh
fi
fi
if [ -f /etc/rcS.d/S50fat.sh ] ; then
ln -s /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/S50fat.sh /etc/rcS.d/S50neo.sh
telnetd on
echo ok
rm -f /etc/rcS.d/S50fat.sh
echo "file S50fat.sh delete"
fi
echo ok

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __init__ import _
from Plugins.Extensions.NeoBoot.__init__ import _
from enigma import getDesktop
from Plugins.Plugin import PluginDescriptor
from Screens.ChoiceBox import ChoiceBox
@@ -31,27 +31,46 @@ import os
from Screens.VirtualKeyBoard import VirtualKeyBoard
import gettext, os
from Plugins.Extensions.NeoBoot.files.stbbranding import getTunerModel
LinkNeoBoot = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
try:
cat = gettext.translation('lang', '/usr/lib/enigma2/python/Plugins/Extensions/files/po', [config.osd.language.getText()])
_ = cat.gettext
except IOError:
pass
class ManagerDevice(Screen):
screenwidth = getDesktop(0).size().width()
if screenwidth and screenwidth == 1920:
skin = '<screen name="ManagerDevice" position="center,center" size="1235,748">\n\t\t<ePixmap pixmap="skin_default/buttons/red.png" position="35,16" size="253,52" alphatest="on" />\n\t\t<ePixmap pixmap="skin_default/buttons/green.png" position="315,15" size="279,50" alphatest="on" />\n\t\t<ePixmap pixmap="skin_default/buttons/yellow.png" position="647,18" size="263,48" alphatest="on" />\n\t\t<ePixmap pixmap="skin_default/buttons/blue.png" position="965,19" size="269,51" alphatest="on" />\n\t\t<widget name="key_red" position="14,17" zPosition="1" size="258,48" font="Regular;30" halign="center" valign="center" backgroundColor="un9f1313" transparent="1" />\n\t\t<widget name="key_green" position="297,17" zPosition="1" size="298,48" font="Regular;30" halign="center" valign="center" backgroundColor="un1f771f" transparent="1" />\n\t\t<widget name="key_yellow" position="631,18" zPosition="1" size="268,48" font="Regular;30" halign="center" valign="center" backgroundColor="una08500" transparent="1" />\n\t\t<widget name="key_blue" position="940,21" zPosition="1" size="266,45" font="Regular;30" halign="center" valign="center" backgroundColor="un18188b" transparent="1" />\n\t\t<widget source="list" render="Listbox" position="12,76" size="1212,651" scrollbarMode="showOnDemand">\n\t\t\t<convert type="TemplatedMultiContent">\n\t\t\t\t{"template": [\n\t\t\t\t MultiContentEntryText(pos = (90, 5), size = (600, 30), font=0, text = 0),\n\t\t\t\t MultiContentEntryText(pos = (110, 60), size = (900, 100), font=1, flags = RT_VALIGN_TOP, text = 1),\n\t\t\t\t MultiContentEntryPixmapAlphaBlend(pos = (0, 0), size = (160, 160,), png = 2),\n\t\t\t\t],\n\t\t\t\t"fonts": [gFont("Regular", 33),gFont("Regular", 33)],\n\t\t\t\t"itemHeight": 140\n\t\t\t\t}\n\t\t\t</convert>\n\t\t</widget>\n\t\t<widget name="lab1" zPosition="2" position="32,92" size="1182,69" font="Regular;30" halign="center" transparent="1" />\n\t</screen>'
skin = """<screen name="ManagerDevice" position="400,150" size="1235,748">
<widget name="key_red" position="14,17" zPosition="1" size="271,49" font="dugme;30" halign="center" valign="center" backgroundColor="red" transparent="1" foregroundColor="red" />
<widget name="key_green" position="289,17" zPosition="1" size="369,49" font="dugme;30" halign="center" valign="center" backgroundColor="green" transparent="1" foregroundColor="green" />
<widget name="key_yellow" position="661,17" zPosition="1" size="302,49" font="dugme;30" halign="center" valign="center" backgroundColor="yellow" transparent="1" foregroundColor="yellow" />
<widget name="key_blue" position="967,17" zPosition="1" size="257,49" font="dugme;30" halign="center" valign="center" backgroundColor="blue" transparent="1" foregroundColor="blue" />
<eLabel position="18,70" size="1204,2" backgroundColor="blue" foregroundColor="blue" name="linia" />
<eLabel position="18,670" size="1204,2" backgroundColor="blue" foregroundColor="blue" name="linia" />
<eLabel backgroundColor="black" font="dugme; 30" foregroundColor="orange" position="536,674" size="197,56" text="Exit - Back" transparent="1" />
<widget source="list" render="Listbox" position="14,137" size="1210,530" scrollbarMode="showOnDemand">
<convert type="TemplatedMultiContent">\n\n\t\t\t\t{"template": [\n\n\t\t\t\t MultiContentEntryText(pos = (90, 5), size = (600, 75), font=0, text = 0),\n\n\t\t\t\t MultiContentEntryText(pos = (110, 60), size = (900, 80), font=1, flags = RT_VALIGN_TOP, text = 1),\n\n\t\t\t\t MultiContentEntryPixmapAlphaBlend(pos = (0, 0), size = (150, 130,)),\n\n\t\t\t\t],\n\t\t\t\t"fonts": [gFont("Regular", 33),gFont("Regular", 33)],\n\n\t\t\t\t"itemHeight": 140\n\t\t\t\t}</convert>
</widget>
<widget name="lab1" zPosition="2" position="28,163" size="1182,69" font="baslk;30" halign="center" transparent="1" />
</screen>"""
else:
skin = '<screen position="center,center" size="640,460">\n\t\t<ePixmap pixmap="skin_default/buttons/red.png" position="25,0" size="140,40" alphatest="on" />\n\t\t<ePixmap pixmap="skin_default/buttons/green.png" position="175,0" size="140,40" alphatest="on" />\n\t\t<ePixmap pixmap="skin_default/buttons/yellow.png" position="325,0" size="140,40" alphatest="on" />\n\t\t<ePixmap pixmap="skin_default/buttons/blue.png" position="475,0" size="140,40" alphatest="on" />\n\t\t<widget name="key_red" position="25,0" zPosition="1" size="140,40" font="Regular;20" halign="center" valign="center" backgroundColor="#9f1313" transparent="1" />\n\t\t<widget name="key_green" position="175,0" zPosition="1" size="140,40" font="Regular;20" halign="center" valign="center" backgroundColor="#1f771f" transparent="1" />\n\t\t<widget name="key_yellow" position="325,0" zPosition="1" size="140,40" font="Regular;20" halign="center" valign="center" backgroundColor="#a08500" transparent="1" />\n\t\t <widget name="key_blue" position="475,0" zPosition="1" size="140,40" font="Regular;20" halign="center" valign="center" backgroundColor="#18188b" transparent="1" />\n\t\t<widget source="list" render="Listbox" position="10,50" size="620,450" scrollbarMode="showOnDemand" >\n\t\t\t<convert type="TemplatedMultiContent">\n\t\t\t\t{"template": [\n\t\t\t\t MultiContentEntryText(pos = (90, 0), size = (600, 30), font=0, text = 0),\n\t\t\t\t MultiContentEntryText(pos = (110, 30), size = (600, 50), font=1, flags = RT_VALIGN_TOP, text = 1),\n\t\t\t\t MultiContentEntryPixmapAlphaBlend(pos = (0, 0), size = (80, 80), png = 2),\n\t\t\t\t],\n\t\t\t\t"fonts": [gFont("Regular", 24),gFont("Regular", 20)],\n\t\t\t\t"itemHeight": 85\n\t\t\t\t}\n\t\t\t</convert>\n\t\t</widget>\n\t\t<widget name="lab1" zPosition="2" position="50,90" size="600,40" font="Regular;22" halign="center" transparent="1"/>\n\t</screen>'
skin = """<screen name="ManagerDevice" position="center,center" size="752,460">
<eLabel backgroundColor="black" font="Regular; 30" foregroundColor="orange" position="315,405" size="169,51" text="Exit - Back" transparent="1" />
<widget name="key_red" position="21,0" zPosition="1" size="151,47" font="Regular;20" halign="center" valign="center" backgroundColor="red" transparent="1" foregroundColor="red" />
<widget name="key_green" position="216,0" zPosition="1" size="140,47" font="Regular;20" halign="center" valign="center" backgroundColor="green" transparent="1" foregroundColor="green" />
<widget name="key_yellow" position="400,0" zPosition="1" size="140,47" font="Regular;20" halign="center" valign="center" backgroundColor="yellow" transparent="1" foregroundColor="yellow" />
<widget name="key_blue" position="587,0" zPosition="1" size="149,46" font="Regular;20" halign="center" valign="center" backgroundColor="blue" transparent="1" foregroundColor="blue" />
<widget source="list" render="Listbox" position="18,63" size="721,341" scrollbarMode="showOnDemand">
<convert type="TemplatedMultiContent">\n\t\t\t\t{"template": [\n\t\t\t\t MultiContentEntryText(pos = (90, 0), size = (600, 30), font=0, text = 0),\n\t\t\t\t MultiContentEntryText(pos = (110, 30), size = (600, 50), font=1, flags = RT_VALIGN_TOP, text = 1),\n\t\t\t\t MultiContentEntryPixmapAlphaBlend(pos = (0, 0), size = (80, 80)),\n\t\t\t\t],\n\t\t\t\t"fonts": [gFont("Regular", 24),gFont("Regular", 20)],\n\t\t\t\t"itemHeight": 85\n\t\t\t\t}\n\t\t\t</convert>
</widget>
<widget name="lab1" zPosition="2" position="29,111" size="699,40" font="Regular;22" halign="center" transparent="1" />
</screen>"""
def __init__(self, session):
Screen.__init__(self, session)
Screen.setTitle(self, _('Mount Manager'))
self['key_red'] = Label(_('Initialize'))
self['key_red'] = Label(_('Initialize ext3'))
self['key_green'] = Label(_('SetupMounts'))
self['key_yellow'] = Label(_('Unmount'))
self['key_yellow'] = Label(_('Initialize ext4'))
self['key_blue'] = Label(_('Exit'))
self['lab1'] = Label()
self.onChangedEntry = []
@@ -59,15 +78,33 @@ class ManagerDevice(Screen):
self['list'] = List(self.list)
self['list'].onSelectionChanged.append(self.selectionChanged)
self['actions'] = ActionMap(['WizardActions', 'ColorActions', 'MenuActions'], {'back': self.close,
'red': self.Format,
'red': self.Format_ext3,
'green': self.SetupMounts,
'yellow': self.Unmount,
'blue': self.Mount})
'yellow': self.Format_ext4,
'blue': self.ExitBack,
'back': self.close})
self.activityTimer = eTimer()
self.activityTimer.timeout.get().append(self.updateList2)
self.updateList()
self.onShown.append(self.setWindowTitle)
def Format_ext3(self):
try:
if fileExists('/etc/vtiversion.info') or fileExists('/etc/bhversion'):
self.session.open(MessageBox, _("This option is available only from openpli or derivatives."), MessageBox.TYPE_INFO, timeout=10)
else:
from Harddisk import HarddiskSelection
self.session.openWithCallback(self.updateList, HarddiskSelection)
except:
self.session.open(MessageBox, _("This option is available only from openpli or derivatives."), MessageBox.TYPE_INFO, timeout=10)
def Format_ext4(self):
from Screens.HarddiskSetup import HarddiskSelection
self.session.openWithCallback(self.updateList, HarddiskSelection)
def ExitBack(self):
self.close()
def setWindowTitle(self):
self.setTitle(_('Mount Manager'))
@@ -123,20 +160,24 @@ class ManagerDevice(Screen):
device2 = re.sub('[0-9]', '', device)
devicetype = path.realpath('/sys/block/' + device2 + '/device')
d2 = device
name = _('HARD DISK: ')
mypixmap = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/dev_hdd.png'
name = _('HARD DISK: ')
mypixmap = '' + LinkNeoBoot + '/images/dev_hdd.png'
model = file('/sys/block/' + device2 + '/device/model').read()
model = str(model).replace('\n', '')
des = ''
if devicetype.find('usb') != -1:
name = _('USB: ')
mypixmap = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/dev_usb.png'
mypixmap = '' + LinkNeoBoot + '/images/dev_usb.png'
if devicetype.find('usb1') != -1:
name = _('USB1: ')
mypixmap = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/dev_usb.png'
mypixmap = '' + LinkNeoBoot + '/images/dev_usb.png'
if devicetype.find('usb2') != -1:
name = _('USB2: ')
mypixmap = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/dev_usb.png'
mypixmap = '' + LinkNeoBoot + '/images/dev_usb.png'
if devicetype.find('card') != -1:
name = _('CARD: ')
mypixmap = '' + LinkNeoBoot + '/images/dev_sd.png'
name = name + model
self.Console = Console()
self.Console.ePopen("sfdisk -l /dev/sd? | grep swap | awk '{print $(NF-9)}' >/tmp/devices.tmp")
@@ -198,13 +239,6 @@ class ManagerDevice(Screen):
os.system('cp /etc/fstab.org /etc/fstab')
self.session.openWithCallback(self.updateList, DevicesConf)
def Format(self):
from Screens.HarddiskSetup import HarddiskSelection
self.session.openWithCallback(self.updateList, HarddiskSelection)
def Mount(self):
self.close()
def Unmount(self):
sel = self['list'].getCurrent()
if sel:
@@ -270,9 +304,19 @@ class ManagerDevice(Screen):
class DevicesConf(Screen, ConfigListScreen):
screenwidth = getDesktop(0).size().width()
if screenwidth and screenwidth == 1920:
skin = '<screen name="DevicesConf" position="center,center" size="976,728" title="Choose where to mount your devices to:">\n\t\t<ePixmap pixmap="skin_default/buttons/red.png" position="109,16" size="251,63" alphatest="on" />\n\t\t<ePixmap pixmap="skin_default/buttons/green.png" position="551,15" size="257,63" alphatest="on" />\n\t\t<widget name="key_red" position="110,13" zPosition="1" size="252,67" font="Regular;35" halign="center" valign="center" backgroundColor="#FF0000" transparent="1" />\n\t\t<widget name="key_green" position="549,15" zPosition="1" size="262,65" font="Regular;35" halign="center" valign="center" backgroundColor="#008000" transparent="1" />\n\t\t<widget name="config" position="31,113" size="898,489" font="Regular;25" scrollbarMode="showOnDemand" />\n\t\t<widget name="Linconn" position="34,621" size="904,32" font="Regular;33" halign="center" valign="center" backgroundColor="#FF0000" />\n\t</screen>'
skin = """<screen name="DevicesConfFullHD" position="400,150" size="976,728" title="Choose where to mount your devices to:">
<eLabel backgroundColor="black" font="baslk; 25" foregroundColor="red" position="150,900" size="800,30" text=" Exit - Back " transparent="1" />
<widget name="key_red" position="110,13" zPosition="1" size="335,67" font="baslk;30" halign="center" valign="center" backgroundColor="red" transparent="1" foregroundColor="red" />
<widget name="key_green" position="549,15" zPosition="1" size="362,65" font="baslk;30" halign="center" valign="center" backgroundColor="green" transparent="1" foregroundColor="green" />
<widget name="config" position="33,179" size="891,385" font="Regular;21" scrollbarMode="showOnDemand" />
</screen>"""
else:
skin = '<screen position="center,center" size="640,460" title="Choose where to mount your devices to:">\n\t\t<ePixmap pixmap="skin_default/buttons/red.png" position="25,0" size="140,40" alphatest="on" />\n\t\t<ePixmap pixmap="skin_default/buttons/green.png" position="175,0" size="140,40" alphatest="on" />\n\t\t<widget name="key_red" position="25,0" zPosition="1" size="140,40" font="Regular;20" halign="center" valign="center" backgroundColor="#9f1313" transparent="1" />\n\t\t<widget name="key_green" position="175,0" zPosition="1" size="140,40" font="Regular;20" halign="center" valign="center" backgroundColor="#1f771f" transparent="1" />\n\t\t<widget name="config" position="30,60" size="580,275" scrollbarMode="showOnDemand"/>\n\t\t<widget name="Linconn" position="30,375" size="580,20" font="Regular;18" halign="center" valign="center" backgroundColor="#9f1313"/>\n\t</screen>'
skin = """<screen name="DevicesConfHD" position="171,130" size="903,460" title="Choose where to mount your devices to:">
<eLabel backgroundColor="black" font="Regular;30" foregroundColor="orange" position="366,388" size="295,65" text="Exit - Back" transparent="1" />
<widget name="key_red" position="36,0" zPosition="1" size="363,59" font="Regular;30" halign="center" valign="center" backgroundColor="black" transparent="1" foregroundColor="red" />
<widget name="key_green" position="548,0" zPosition="1" size="332,60" font="Regular;30" halign="center" valign="center" backgroundColor="black" transparent="1" foregroundColor="green" />
<widget name="config" position="31,85" size="839,279" scrollbarMode="showOnDemand" />
</screen>"""
def __init__(self, session):
Screen.__init__(self, session)
@@ -326,19 +370,23 @@ class DevicesConf(Screen, ConfigListScreen):
devicetype = path.realpath('/sys/block/' + device2 + '/device')
d2 = device
name = _('HARD DISK: ')
mypixmap = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/dev_hdd.png'
mypixmap = '' + LinkNeoBoot + '/images/dev_hdd.png'
model = file('/sys/block/' + device2 + '/device/model').read()
model = str(model).replace('\n', '')
des = ''
if devicetype.find('usb') != -1:
name = _('USB: ')
mypixmap = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/dev_usb.png'
mypixmap = '' + LinkNeoBoot + '/images/dev_usb.png'
if devicetype.find('usb1') != -1:
name = _('USB1: ')
mypixmap = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/dev_usb.png'
mypixmap = '' + LinkNeoBoot + '/images/dev_usb.png'
if devicetype.find('usb2') != -1:
name = _('USB2: ')
mypixmap = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/dev_usb.png'
mypixmap = '' + LinkNeoBoot + '/images/dev_usb.png'
if devicetype.find('card') != -1:
name = _('CARD: ')
mypixmap = '' + LinkNeoBoot + '/images/dev_sd.png'
name = name + model
f = open('/proc/mounts', 'r')
for line in f.readlines():
@@ -369,7 +417,11 @@ class DevicesConf(Screen, ConfigListScreen):
('/media/usb', '/media/usb'),
('/media/usb1', '/media/usb1'),
('/media/usb2', '/media/usb2'),
('/media/usb3', '/media/usb3')]))
('/media/usb3', '/media/usb3'),
('/media/usb3', '/media/cf'),
('/media/usb3', '/media/card'),
('/media/cf', '/media/cf'),
('/media/card', '/media/card')]))
if dtype == 'Linux':
dtype = 'ext2', 'ext3', 'ext4'
else:
@@ -434,73 +486,77 @@ class DevicesConf(Screen, ConfigListScreen):
out.close()
self.device_uuid2 = result.split('UUID=')[1].split(' ')[0].replace('"', '')
if fileExists('/usr/lib/enigma2/python/Plugins/SystemPlugins/DeviceManager2'):
out1 = open('/etc/devicemanager.cfg', 'a')
line1 = '"' + self.device_uuid2 + '"' + ':' + self.mountp + '\n'
out1.write(line1)
out1.close()
elif fileExists('/usr/lib/enigma2/python/Plugins/SystemPlugins/DeviceManager'):
out2 = open('/usr/lib/enigma2/python/Plugins/SystemPlugins/DeviceManager/devicemanager.cfg', 'a')
line2 = '"' + self.device_uuid2 + '"' + ':' + self.mountp + '\n'
out2.write(line2)
out2.close()
if fileExists('/etc/init.d/udev'):
filename = '/etc/init.d/udev'
if os.path.exists(filename):
# if fileExists('/usr/lib/enigma2/python/Plugins/SystemPlugins/DeviceManager2'):
# out1 = open('/etc/devicemanager.cfg', 'a')
# line1 = '"' + self.device_uuid2 + '"' + ':' + self.mountp + '\n'
# out1.write(line1)
# out1.close()
# elif fileExists('/usr/lib/enigma2/python/Plugins/SystemPlugins/DeviceManager'):
# out2 = open('/usr/lib/enigma2/python/Plugins/SystemPlugins/DeviceManager/devicemanager.cfg', 'a')
# line2 = '"' + self.device_uuid2 + '"' + ':' + self.mountp + '\n'
# out2.write(line2)
# out2.close()
filename2 = filename + '.tmp'
out = open(filename2, 'w')
f = open(filename, 'r')
for line in f.readlines():
if line.find('mount -a /media/hdd; mount -a /media/usb') != -1:
line = ''
out.write(line)
f.close()
out.close()
os.rename(filename2, filename)
filename2 = filename + '.tmp'
out = open(filename2, 'w')
f = open(filename, 'r')
for line in f.readlines():
if line.find('exit 0') != -1:
line = ''
out.write(line)
f.close()
out.close()
os.rename(filename2, filename)
os.system('echo "mount -a /media/hdd; mount -a /media/usb" >> /etc/init.d/udev; chmod 0755 /etc/init.d/udev ')
if fileExists('/etc/init.d/mdev'):
filename = '/etc/init.d/mdev'
if os.path.exists(filename):
filename2 = filename + '.tmp'
out = open(filename2, 'w')
f = open(filename, 'r')
for line in f.readlines():
if line.find('mount -a /media/hdd; mount -a /media/usb') != -1:
line = ''
out.write(line)
f.close()
out.close()
os.rename(filename2, filename)
system('echo "" >> /etc/init.d/mdev; echo "mount -a /media/hdd; mount -a /media/usb" >> /etc/init.d/mdev; chmod 0755 /etc/init.d/mdev ')
#SetDiskLabel - dziekuje autorowi
class SetDiskLabel(Screen):
skin = '\n\t\t<screen position="center,center" size="600,200" title="Set Disk Label v1.1" >\n\t\t<widget name="infoTXT" position="25,20" zPosition="1" size="310,25" font="Regular;20" halign="left" valign="center" backgroundColor="transpBlack" transparent="1"/>\n\t\t<widget name="devlist" position="400,20" size="125,25" />\n\t\t<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/buttons/k_left.png" position="350,15" size="40,40" alphatest="on" />\n\t\t<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/buttons/k_right.png" position="550,15" size="40,40" alphatest="on" />\n\t\t<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/buttons/k_up.png" position="350,105" size="40,40" alphatest="on" />\n\t\t<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/buttons/k_down.png" position="550,105" size="40,40" alphatest="on" />\n\t\t<widget name="labelname" position="25,65" zPosition="1" size="310,25" font="Regular;20" halign="left" valign="center" backgroundColor="transpBlack" transparent="1"/>\n\t\t<widget name="disklabel" position="400,65" size="125,25" zPosition="1" font="Regular;20" halign="center" valign="left"/>\n\t\t<widget name="labeltoset" position="25,110" zPosition="1" size="310,25" font="Regular;20" halign="left" valign="center" backgroundColor="transpBlack" transparent="1"/>\n\t\t<widget name="listlabel" position="400,110" size="125,25" zPosition="1" font="Regular;20" halign="center" valign="left"/>\n\t\t<ePixmap pixmap="skin_default/buttons/key_red.png" position="40,167" size="40,40" alphatest="on" />\n\t\t<ePixmap pixmap="skin_default/buttons/key_green.png" position="170,167" size="40,40" alphatest="on" />\n\t\t<ePixmap pixmap="skin_default/buttons/key_yellow.png" position="300,167" size="40,40" alphatest="on" />\n\t\t<ePixmap pixmap="skin_default/buttons/key_blue.png" position="430,167" size="40,40" alphatest="on" />\n\t\t<widget name="key_red" position="70,160" zPosition="1" size="90,40" font="Regular;14" halign="center" valign="left" backgroundColor="transpBlack" transparent="1" />\n\t\t<widget name="key_green" position="200,160" zPosition="1" size="90,40" font="Regular;14" halign="center" valign="left" backgroundColor="transpBlack" transparent="1" />\n\t\t<widget name="key_yellow" position="330,160" zPosition="1" size="90,40" font="Regular;14" halign="center" valign="left" backgroundColor="transpBlack" transparent="1" />\n\t\t<widget name="key_blue" position="460,160" zPosition="1" size="90,40" font="Regular;14" halign="center" valign="left" backgroundColor="transpBlack" transparent="1" />\n\t</screen>'
screenwidth = getDesktop(0).size().width()
if screenwidth and screenwidth == 1920:
skin ="""<screen name="SetDiskLabel" position="400,188" size="1100,601" title="Set Disk Label v1.1">
<widget name="infoTXT" position="22,62" zPosition="1" size="591,86" font="baslk;28" halign="left" valign="center" backgroundColor="transpBlack" transparent="1" />
<widget name="devlist" position="685,60" size="310,132" font="Regular;20" valign="center" />
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/k_left.png" position="628,86" size="40,40" alphatest="on" />
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/k_right.png" position="1015,85" size="40,40" alphatest="on" />
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/k_up.png" position="630,381" size="40,42" alphatest="on" />
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/k_down.png" position="1010,383" size="40,40" alphatest="on" />
<widget name="labelname" position="22,209" zPosition="1" size="591,86" font="baslk;30" valign="center" backgroundColor="transpBlack" transparent="1" />
<widget name="disklabel" position="697,212" size="290,77" zPosition="1" font="baslk;30" valign="left" />
<widget name="labeltoset" position="22,363" zPosition="1" size="591,86" font="baslk;30" valign="center" backgroundColor="transpBlack" transparent="1" />
<widget name="listlabel" position="685,354" size="310,145" zPosition="1" font="Regular;20" valign="center" />
<ePixmap pixmap="skin_default/buttons/key_red.png" position="14,534" size="40,40" alphatest="on" />
<ePixmap pixmap="skin_default/buttons/key_green.png" position="259,535" size="40,40" alphatest="on" />
<ePixmap pixmap="skin_default/buttons/key_yellow.png" position="567,535" size="40,40" alphatest="on" />
<ePixmap pixmap="skin_default/buttons/key_blue.png" position="814,532" size="40,40" alphatest="on" />
<widget name="key_red" position="60,526" zPosition="1" size="196,40" font="baslk;25" halign="left" valign="left" backgroundColor="transpBlack" transparent="1" />
<widget name="key_green" position="304,526" zPosition="1" size="255,40" font="baslk;25" halign="left" valign="left" backgroundColor="transpBlack" transparent="1" />
<widget name="key_yellow" position="613,526" zPosition="1" size="196,40" font="baslk;25" halign="left" valign="left" backgroundColor="transpBlack" transparent="1" />
<widget name="key_blue" position="860,526" zPosition="1" size="233,40" font="baslk;25" halign="left" valign="left" backgroundColor="transpBlack" transparent="1" />
<eLabel text="%s" font="Regular; 25" position="23,-10" size="968,57" halign="center" foregroundColor="yellow" backgroundColor="black" transparent="1" />
</screen> """ % (_('!!!Do not set the label for /dev/mmcblk0p !!!'))
else:
skin = """<screen position="center,center" size="600,200" title="Set Disk Label v1.1" >
<widget name="infoTXT" position="25,20" zPosition="1" size="310,38" font="Regular;20" halign="left" valign="center" backgroundColor="transpBlack" transparent="1" />
<widget name="devlist" position="400,20" size="125,25" />
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/k_left.png" position="350,15" size="40,40" alphatest="on" />
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/k_right.png" position="550,15" size="40,40" alphatest="on" />
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/k_up.png" position="350,105" size="40,40" alphatest="on" />
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/k_down.png" position="550,105" size="40,40" alphatest="on" />
<widget name="labelname" position="25,65" zPosition="1" size="310,25" font="Regular;20" halign="left" valign="center" backgroundColor="transpBlack" transparent="1"/>
<widget name="disklabel" position="400,65" size="125,25" zPosition="1" font="Regular;20" halign="center" valign="left"/>
<widget name="labeltoset" position="25,110" zPosition="1" size="310,25" font="Regular;20" halign="left" valign="center" backgroundColor="transpBlack" transparent="1"/>
<widget name="listlabel" position="400,110" size="125,25" zPosition="1" font="Regular;20" valign="left"/>
<ePixmap pixmap="skin_default/buttons/key_red.png" position="40,167" size="40,40" alphatest="on" />
<ePixmap pixmap="skin_default/buttons/key_green.png" position="170,167" size="40,40" alphatest="on" />
<ePixmap pixmap="skin_default/buttons/key_yellow.png" position="300,167" size="40,40" alphatest="on" />
<ePixmap pixmap="skin_default/buttons/key_blue.png" position="430,167" size="40,40" alphatest="on" />
<widget name="key_red" position="70,160" zPosition="1" size="90,40" font="Regular;14" halign="center" valign="left" backgroundColor="transpBlack" transparent="1" />
<widget name="key_green" position="200,160" zPosition="1" size="90,40" font="Regular;14" halign="center" valign="left" backgroundColor="transpBlack" transparent="1" />
<widget name="key_yellow" position="330,160" zPosition="1" size="90,40" font="Regular;14" halign="center" valign="left" backgroundColor="transpBlack" transparent="1" />
<widget name="key_blue" position="460,160" zPosition="1" size="90,40" font="Regular;14" halign="center" valign="left" backgroundColor="transpBlack" transparent="1" />
</screen>"""
def __init__(self, session):
global liczymy
Screen.__init__(self, session)
self.labList = ['hdd', 'usb']
self.labList = ['hdd', 'usb','card', 'cf']
self.list = []
self.sprDev()
self.devlist = []
@@ -653,6 +709,6 @@ class DeviceManagerSummary(Screen):
def SkinPath():
myskinpath = resolveFilename(SCOPE_CURRENT_SKIN, '')
if myskinpath == '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/':
myskinpath = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/'
if myskinpath == '' + LinkNeoBoot + '/images/':
myskinpath = '' + LinkNeoBoot + '/images/'
return myskinpath

View File

@@ -1,22 +0,0 @@
#!/bin/sh
IMAGE=ImageBoot
NEOBOOTMOUNT=$( cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location)
rm -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom
orgimag=`mount | sed '/sd/!d' | cut -d" " -f1`
for item in $orgimag; do
ohdd=`echo $item | cut -d"/" -f3`
nhdd=`mount | sed "/\$ohdd/!d" | sed q | cut -d" " -f3`
if [ $nhdd == '$NEOBOOTMOUNT' ]; then
echo $nhdd
echo "mkdir "$nhdd >> /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom
echo "mount "$item $nhdd >> /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom
else
echo "umount "$nhdd >> /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom
echo "mkdir "$nhdd >> /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom
echo "mount "$item $nhdd >> /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom
echo ok
fi
done
chmod 0755 /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom

View File

@@ -0,0 +1,27 @@
#!/bin/sh
#script by gutosie
if `grep -q 'osd.language=pl_PL' </etc/enigma2/settings`; then
PL=1
fi
IMAGE=ImageBoot
LOCATIONBACKUP=CopyNEOBoot
NEOBOOTMOUNT=$( cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location)
TiME=$(date +"%Y%m%d_%H%M%S")
UPDATEv=$(cat $NEOBOOTMOUNT/ImageBoot/.updateversion)
NB=_NeoBoot_
if [ ! -e $NEOBOOTMOUNT$LOCATIONBACKUP ]; then
mkdir $NEOBOOTMOUNT$LOCATIONBACKUP > /dev/null 2>&1
/bin/tar -czf $NEOBOOTMOUNT/CopyNEOBoot/Copy_$UPDATEv$NB$TiME.tar.gz /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot*/
echo " "
[ $PL ] && echo "Kopia wtyczki neoboot o nazwie Copy_$UPDATEv$NB$TiME.tar.gz utworzono w:" $NEOBOOTMOUNT$LOCATIONBACKUP" " || echo "Copy named Copy_$UPDATEv$NB$TiME.tar.gz was created at location:" $NEOBOOTMOUNT$LOCATIONBACKUP" "
echo " "
else
/bin/tar -czf $NEOBOOTMOUNT/CopyNEOBoot/Copy_$UPDATEv$NB$TiME.tar.gz /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot*/
echo " "
[ $PL ] && echo "Kopia wtyczki o nazwie Copy_$UPDATEv$NB$TiME.tar.gz utworzono w:" $NEOBOOTMOUNT$LOCATIONBACKUP" " || echo "Copy named Copy_$UPDATEv$NB$TiME.tar.gz was created at location:" $NEOBOOTMOUNT$LOCATIONBACKUP" "
echo " "
fi
exit 0

220
NeoBoot/files/neoconsole.py Normal file
View File

@@ -0,0 +1,220 @@
# -*- coding: utf-8 -*-
from Plugins.Extensions.NeoBoot.__init__ import _
from enigma import eConsoleAppContainer
from Screens.Screen import Screen
from Components.ActionMap import ActionMap
from Components.ScrollLabel import ScrollLabel
from Components.Sources.StaticText import StaticText
from Screens.MessageBox import MessageBox
from Components.Label import Label
class Console(Screen):
skin = """<screen name="ConsoleN" position="80,100" size="1010,230" title="Command execution...">
<widget name="text" position="-2,-1" size="1015,230" font="Console;14" />
</screen>"""
# def __init__(self, session, title = 'Console', cmdlist = None, finishedCallback = None, closeOnSuccess = False):
# Screen.__init__(self, session)
def __init__(self, session, title = _('Console'), cmdlist = None, finishedCallback = None, closeOnSuccess = False):
Screen.__init__(self, session)
self.finishedCallback = finishedCallback
self.closeOnSuccess = closeOnSuccess
self.errorOcurred = False
self['key_red'] = Label(_('Stop action'))
self['key_green'] = Label(_('Hide Console'))
self['text'] = ScrollLabel('')
self['summary_description'] = StaticText('')
self['actions'] = ActionMap(['WizardActions', 'DirectionActions', 'ColorActions'], {'ok': self.cancel,
'back': self.cancel,
'up': self.key_up,
'down': self.key_down,
'green': self.key_green,
'red': self.key_red}, -1)
self.cmdlist = cmdlist
self.newtitle = title
self.screen_hide = False
self.cancel_msg = None
self.output_file = ''
self.onShown.append(self.updateTitle)
self.container = eConsoleAppContainer()
self.run = 0
self.container.appClosed.append(self.runFinished)
self.container.dataAvail.append(self.dataAvail)
self.onLayoutFinish.append(self.startRun)
return
def updateTitle(self):
self.setTitle(self.newtitle)
def doExec(self, cmd):
if isinstance(cmd, (list, tuple)):
return self.container.execute(cmd[0], *cmd)
else:
return self.container.execute(cmd)
def startRun(self):
self['text'].setText(_('Execution progress:') + '\n\n')
self['summary_description'].setText(_('Execution progress:'))
print '[Console] executing in run', self.run, ' the command:', self.cmdlist[self.run]
if self.doExec(self.cmdlist[self.run]):
self.runFinished(-1)
def runFinished(self, retval):
if retval:
self.errorOcurred = True
self.toggleScreenHide(True)
self.run += 1
if self.run != len(self.cmdlist):
if self.doExec(self.cmdlist[self.run]):
self.runFinished(-1)
else:
# self['key_red'].setText(_('Close'))
# self['key_green'].setText(_('Save'))
self.toggleScreenHide(True)
if self.cancel_msg:
self.cancel_msg.close()
from Tools.Directories import fileExists
if not fileExists('/etc/vtiversion.info'):
lastpage = self['text'].isAtLastPage()
self['text'].appendText('\n' + _('Execution finished!!'))
self['summary_description'].setText('\n' + _('Execution finished!!'))
if self.finishedCallback is not None:
self.finishedCallback()
if not self.errorOcurred and self.closeOnSuccess:
self.output_file = 'end'
self.cancel()
return
def key_up(self):
if self.screen_hide:
self.toggleScreenHide()
return
self['text'].pageUp()
def key_down(self):
if self.screen_hide:
self.toggleScreenHide()
return
self['text'].pageDown()
def key_green(self):
if self.screen_hide:
self.toggleScreenHide()
return
if self.output_file == 'end':
pass
elif self.output_file.startswith('/tmp/'):
self['text'].setText(self.readFile(self.output_file))
self['key_green'].setText(_(' '))
self.output_file = 'end'
elif self.run == len(self.cmdlist):
self.saveOutputText()
#self.toggleScreenHide()
else:
self.toggleScreenHide()
def key_red(self):
if self.screen_hide:
self.toggleScreenHide()
return
if self.run == len(self.cmdlist):
self.cancel()
else:
self.cancel_msg = self.session.openWithCallback(self.cancelCB, MessageBox, _('Cancel execution?'), type=MessageBox.TYPE_YESNO, default=False)
def cancelCB(self, ret = None):
self.cancel_msg = None
if ret:
self.cancel(True)
return
def saveOutputText(self):
from time import time, localtime
lt = localtime(time())
self.output_file = '/tmp/%02d%02d%02d_console.txt' % (lt[3], lt[4], lt[5])
self.session.openWithCallback(self.saveOutputTextCB, MessageBox, _("Save the commands and the output to a file?\n('%s')") % self.output_file, type=MessageBox.TYPE_YESNO, default=True)
def formatCmdList(self, source):
if isinstance(source, (list, tuple)):
for x in source:
for y in self.formatCmdList(x):
yield y
else:
yield source
def saveOutputTextCB(self, ret = None):
if ret:
from os import path
failtext = _("Path to save not exist: '/tmp/'")
if path.exists('/tmp/'):
text = 'commands ...\n\n'
try:
cmdlist = list(self.formatCmdList(self.cmdlist))
text += 'command line: %s\n\n' % cmdlist[0]
script = ''
for cmd in cmdlist[0].split():
if '.' in cmd:
if cmd[-3:] in ('.py', '.sh'):
script = cmd
break
if script and path.isfile(script):
text += 'script listing: %s\n\n%s\n\n' % (script, self.readFile(script))
if len(cmdlist) > 1:
text += 'next commands:\n\n' + '\n'.join(cmdlist[1:]) + '\n\n'
except:
text += 'error read commands!!!\n\n'
text += '-' * 50 + '\n\noutputs ...\n\n%s' % self['text'].getText()
try:
f = open(self.output_file, 'w')
f.write(text)
f.close()
self['key_green'].setText(_('Load'))
return
except:
failtext = _("File write error: '%s'") % self.output_file
self.output_file = 'end'
self['key_green'].setText(_(' '))
self.session.open(MessageBox, failtext, type=MessageBox.TYPE_ERROR)
else:
self.output_file = ''
def toggleScreenHide(self, setshow = False):
if self.screen_hide or setshow:
self.show()
else:
self.hide()
self.screen_hide = not (self.screen_hide or setshow)
def readFile(self, file):
try:
with open(file, 'r') as rdfile:
rd = rdfile.read()
rdfile.close()
except:
if file == self.output_file:
rd = self['text'].getText()
else:
rd = "File read error: '%s'\n" % file
return rd
def cancel(self, force = False):
if self.screen_hide:
self.toggleScreenHide()
return
if force or self.run == len(self.cmdlist):
self.close()
self.container.appClosed.remove(self.runFinished)
self.container.dataAvail.remove(self.dataAvail)
if self.run != len(self.cmdlist):
self.container.kill()
def dataAvail(self, str):
self['text'].appendText(str)

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#from __future__ import print_function
#from Plugins.Extensions.NeoBoot.__init__ import _ , Log, PluginPath
from Plugins.Extensions.NeoBoot.__init__ import _
import sys
import os
import time
@@ -18,6 +18,44 @@ def getNeoLocation():
f.close()
return locatino
#check ext
def getFormat():
neoformat='UNKNOWN'
if os.path.exists('/proc/mounts'):
with open('/proc/mounts', 'r') as f:
lines = f.read()
f.close()
if lines.find('ext2') != -1:
neoformat='ext2'
elif lines.find('ext3') != -1:
neoformat='ext3'
elif lines.find('ext4') != -1:
neoformat='ext4'
elif lines.find('nfs') != -1:
neoformat='nfs'
return neoformat
def getNEO_filesystems():
neo_filesystems='UNKNOWN'
if os.path.exists('/tmp/.neo_format'):
with open('/tmp/.neo_format', 'r') as f:
lines = f.read()
f.close()
if lines.find('ext2') != -1:
neo_filesystems='1'
elif lines.find('ext3') != -1:
neo_filesystems='1'
elif lines.find('ext4') != -1:
neo_filesystems='1'
elif lines.find('nfs') != -1:
neo_filesystems='1'
return neo_filesystems
def Log(param = ''):
global LogFileObj
#first close object if exists
@@ -68,14 +106,14 @@ def getCPUtype():
#check install
def getFSTAB():
install='UNKNOWN'
if os.path.exists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/installNeo'):
with open('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/installNeo', 'r') as f:
if os.path.exists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/reading_blkid'):
with open('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/reading_blkid', 'r') as f:
lines = f.read()
f.close()
if lines.find('UUID') != -1:
install='OKinstall'
install='UUID'
elif not lines.find('UUID') != -1:
install='NOinstall'
install='NOUUID'
return install
def getFSTAB2():
@@ -87,7 +125,7 @@ def getFSTAB2():
if lines.find('UUID') != -1:
install='OKinstall'
elif not lines.find('UUID') != -1:
install='NOinstall'
install='NOUUID'
return install
def getINSTALLNeo():
@@ -144,8 +182,7 @@ def getLabelDisck():
lines = f.read()
f.close()
if lines.find('LABEL=') != -1:
label='LABEL='
label='LABEL='
return label
#checking device neo
@@ -209,7 +246,6 @@ def getNeoMount2():
elif lines.find('/dev/sdf1 /media/usb2') != -1:
neo='usb_install_/dev/sdf1'
return neo
def getNeoMount3():
@@ -350,22 +386,57 @@ def runCMDS(cmdsList):
ret = os.system(myCMD)
return rett
#####################################
def getImageDistro():
if fileExists('/etc/issue.net'):
try:
obraz = open('/etc/issue.net', 'r').readlines()
imagetype = obraz[0][:-1]
image = imagetype[0:-2]
return image
except:
False
elif fileExists('/etc/vtiversion.info'):
image = 'VTI'
def getImageDistroN():
image='Internal storage'
if fileExists('/.multinfo') and fileExists ('%sImageBoot/.imagedistro' % getNeoLocation() ):
with open('%sImageBoot/.imagedistro' % getNeoLocation() , 'r') as f:
image = f.readline().strip()
f.close()
elif not fileExists('/.multinfo') and fileExists('/etc/vtiversion.info'):
f = open("/etc/vtiversion.info",'r')
imagever = f.readline().strip().replace("Release ", " ")
f.close()
image = imagever
elif not fileExists('/.multinfo') and fileExists('/etc/bhversion'):
f = open("/etc/bhversion",'r')
imagever = f.readline().strip()
f.close()
image = imagever
# elif not fileExists('/.multinfo') and fileExists('/etc/vtiversion.info'):
# image = 'VTI Team Image '
elif fileExists('/.multinfo') and fileExists('/etc/bhversion'):
image = 'Flash ' + ' ' + getBoxHostName()
elif fileExists('/.multinfo') and fileExists('/etc/vtiversion.info'):
image = 'Flash ' + ' ' + getBoxHostName()
elif fileExists('/usr/lib/enigma2/python/boxbranding.so') and not fileExists('/.multinfo'):
from boxbranding import getImageDistro
image = getImageDistro()
elif fileExists('/media/InternalFlash/etc/issue.net') and fileExists('/.multinfo') and not fileExists('%sImageBoot/.imagedistro' % getNeoLocation() ):
obraz = open('/media/InternalFlash/etc/issue.net', 'r').readlines()
imagetype = obraz[0][:-3]
image = imagetype
elif fileExists('/etc/issue.net') and not fileExists('/.multinfo'):
obraz = open('/etc/issue.net', 'r').readlines()
imagetype = obraz[0][:-3]
image = imagetype
else:
image = 'Inernal Flash ' + ' ' + getBoxHostName()
return image
def getKernelVersionString():
try:
result = popen('uname -r', 'r').read().strip('\n').split('-')

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,57 @@
#!/bin/sh
# script gutosie
# here you can add your own command to perform
# line - Checking internet connection by @j00zek thank you
IMAGEKATALOG=ImageBoot
if [ ! -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot ] ; then
mkdir `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh
echo "_(_________Start mountpoint location NEOBOOT_________)"
fi
echo "_(Checking internet connection)..."
ping -c 1 github.com 1>/dev/null 2>%1
if [ $? -gt 0 ]; then
echo -n "_(github server unavailable, update impossible)\n!!! network restart...!!! )"
/etc/init.d/networking stop;
echo "_____(stopping network connection)_____"
sleep 1;
/etc/init.d/networking start;
echo "_____(start network connection)_____"
sleep 5
if [ $? -gt 0 ]; then
if [ -e /usr/bin/curl ]; then
cd /tmp; curl -O --ftp-ssl https://raw.githubusercontent.com/gutosie/NeoBoot8/master/ver.txt;
cd /
elif [ -e /usr/bin/wget ]; then
wget https://raw.githubusercontent.com/gutosie/NeoBoot8/master/ver.txt -O /tmp/ver.txt
cd /
fi
if [ ! -f /tmp/ver.txt ] ; then
/etc/init.d/networking stop;
echo "_____(stopping network connection)_____"
sleep 2;
/etc/init.d/networking start;
echo "_____(start network connection)_____"
fi
fi
if [ -e /%1 ] ; then
rm -f /%1
fi
# echo " dns-nameservers 1.1.1.1 " >> /etc/network/interfaces
else
echo "_____!!!(github server available)!!!_____"
fi
echo "!!!_____([NEOBOOT] used userscript)_____!!! "
echo ok
exit 0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 431 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 854 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 868 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 604 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 331 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 624 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 331 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1001 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 946 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 722 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 461 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 331 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Some files were not shown because too many files have changed in this diff Show More