终于找到NPK文件的建立和解压方法了
~# ./dumpnpk.py system-2.9.51.npk 解压NPK~# ./createnpk.py system-2.9.51/ 建立NPK
工具见附件
http://routing.explode.gr/node/96
更加详细的大家看上面的 支持一下! :) 做个记号,谢谢! 这个可解压,加压。是否意味着可以集成第三言RADIUS模块? it just a simple code that how to decompress npk. but still not given the file output.
only show text wht is the npk file contain.
CMIIW :lol 楼主也不试试 npk和iso有什么区别吗? 下载了备用,谢谢! 好像不能用啊,我安装的LINUX系统,把这2个文件放到mnt下面,然后把ROS文件也放mnt里面,开始执行解压。
~# ./dumpnpk.py system-2.9.51.npk
然后提示下面
# ./dumpnpk.py telephony-2.9.27.npk
'\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x04\x00\x00\x00i386\x02\x00'
Magic: '\x1e\xf1\xd0\xba' should be: '\x1e\xf1\xd0\xba'
Size after this: 1327805 Header size: 133 Data size: 1327813
Unknown stuff: '\x01\x00 \x00\x00\x00' should be: '\x01\x00 \x00\x00\x00'
Short description: telephony
Revision, unknown, Minor, Major: '\x1bf\t\x02' (27, 102, 9, 2)
Build time: '9\xf8\xa8D' Mon Jul3 18:58:01 2006
Some other numbers: (0L, 0L, 16, 4, 0) should be: (0, 0, 16, 4, 0)
Architecture: i386
Another number: (2,) should be: (2,)
Long description: '\n Telephony H.323 package\n'
Next 24 chars: '\x03\x00"\x00\x00\x00\x01\x00system\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
should be: '\x03\x00"\x00\x00\x00\x01\x00system\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
Separators: '\x1bf\t\x02\x00\x00\x00\x00' '\x1bf\t\x02\x00\x00\x00\x00'
first 4: (27, 102, 9, 2) (27, 102, 9, 2)
Found data of type: 7 size: 51
Contents (oninstall): '\n new-libs\n new-modules\n update-console\n'
Found data of type: 8 size: 53
Contents (onuninstall): '\n dead-libs\n dead-modules\n update-console\n'
Found data of type: 4 size: 1327558
Uncompressing data...
Returning the raw header and the rest of the file (each part in a list)
Files in package:
dir ex nova 1151413906
dir ex nova/bin 1151413901
fil ex nova/bin/pbx 1151413901
dir ex nova/lib 1151413905
dir ex nova/lib/console 1151913480
fil ex nova/lib/console/telephony.xi 1151913480
fil nx nova/lib/console/telephony.hlp 1151913480
dir ex nova/lib/logmaker 1151413906
fil nx nova/lib/logmaker/5000.core.pbx.lom 1151913480
dir ex nova/etc 1151413906
dir ex nova/etc/loader 1151413906
fil nx nova/etc/loader/telephony.x3 1151413906
dir ex nova/etc/modules 1151413906
fil nx nova/etc/modules/telephony.x3 1151413906
dir ex nova/etc/pciinfo 1151413906
fil nx nova/etc/pciinfo/telephony.x3 1151413906
dir ex home 1151413905
dir ex home/web 1151413905
dir ex home/web/winbox 1151413905
fil nx home/web/winbox/phone.dll 1151413905
fil nx home/web/winbox/phone.info 1151413905
dir ex lib 1151413911
dir ex lib/modules 1151413911
dir ex lib/modules/2.4.31 1151413911
dir ex lib/modules/2.4.31/drivers 1151413911
dir ex lib/modules/2.4.31/drivers/telephony 1151413911
fil nx lib/modules/2.4.31/drivers/telephony/phonedev.o 1151413906
fil nx lib/modules/2.4.31/drivers/telephony/ixj.o 1151413909
fil nx lib/modules/2.4.31/drivers/telephony/vpb.o 1151413854
fil nx lib/modules/2.4.31/drivers/telephony/zaptel.o 1151413910
fil nx lib/modules/2.4.31/drivers/telephony/wcfxo.o 1151413911
fil nx lib/modules/2.4.31/modules.dep.telephony 1151913481
dir ex etc 1151413911
dir ex etc/vpb 1151413911
fil nx etc/vpb/vpbmain_pci.out 1151411616
33 nx dev/isdnphone0 1151913482
33 nx dev/isdnphone1 1151913482
33 nx dev/isdnphone10 1151913482
33 nx dev/isdnphone11 1151913482
33 nx dev/isdnphone12 1151913482
33 nx dev/isdnphone13 1151913482
33 nx dev/isdnphone14 1151913482
33 nx dev/isdnphone15 1151913482
33 nx dev/isdnphone16 1151913482
33 nx dev/isdnphone17 1151913482
33 nx dev/isdnphone18 1151913482
33 nx dev/isdnphone19 1151913482
33 nx dev/isdnphone2 1151913482
33 nx dev/isdnphone20 1151913482
33 nx dev/isdnphone21 1151913482
33 nx dev/isdnphone22 1151913482
33 nx dev/isdnphone23 1151913482
33 nx dev/isdnphone24 1151913482
33 nx dev/isdnphone25 1151913482
33 nx dev/isdnphone26 1151913482
33 nx dev/isdnphone27 1151913482
33 nx dev/isdnphone28 1151913482
33 nx dev/isdnphone29 1151913482
33 nx dev/isdnphone3 1151913482
33 nx dev/isdnphone30 1151913482
33 nx dev/isdnphone31 1151913482
33 nx dev/isdnphone32 1151913482
33 nx dev/isdnphone33 1151913482
33 nx dev/isdnphone34 1151913482
33 nx dev/isdnphone35 1151913482
33 nx dev/isdnphone36 1151913482
33 nx dev/isdnphone37 1151913482
33 nx dev/isdnphone38 1151913482
33 nx dev/isdnphone39 1151913482
33 nx dev/isdnphone4 1151913482
33 nx dev/isdnphone40 1151913482
33 nx dev/isdnphone41 1151913482
33 nx dev/isdnphone42 1151913482
33 nx dev/isdnphone43 1151913482
33 nx dev/isdnphone44 1151913482
33 nx dev/isdnphone45 1151913482
33 nx dev/isdnphone46 1151913482
33 nx dev/isdnphone47 1151913482
33 nx dev/isdnphone48 1151913482
33 nx dev/isdnphone49 1151913482
33 nx dev/isdnphone5 1151913482
33 nx dev/isdnphone50 1151913482
33 nx dev/isdnphone51 1151913482
33 nx dev/isdnphone52 1151913482
33 nx dev/isdnphone53 1151913482
33 nx dev/isdnphone54 1151913482
33 nx dev/isdnphone55 1151913482
33 nx dev/isdnphone56 1151913482
33 nx dev/isdnphone57 1151913482
33 nx dev/isdnphone58 1151913482
33 nx dev/isdnphone59 1151913482
33 nx dev/isdnphone6 1151913482
33 nx dev/isdnphone60 1151913482
33 nx dev/isdnphone61 1151913482
33 nx dev/isdnphone62 1151913482
33 nx dev/isdnphone63 1151913482
33 nx dev/isdnphone7 1151913482
33 nx dev/isdnphone8 1151913482
33 nx dev/isdnphone9 1151913482
33 nx dev/phone0 1151913482
33 nx dev/phone1 1151913482
33 nx dev/phone10 1151913482
33 nx dev/phone11 1151913482
33 nx dev/phone12 1151913482
33 nx dev/phone13 1151913482
33 nx dev/phone14 1151913482
33 nx dev/phone15 1151913482
33 nx dev/phone2 1151913482
33 nx dev/phone3 1151913482
33 nx dev/phone4 1151913482
33 nx dev/phone5 1151913482
33 nx dev/phone6 1151913482
33 nx dev/phone7 1151913482
33 nx dev/phone8 1151913482
33 nx dev/phone9 1151913482
33 nx dev/vpb0 1151913482
33 nx dev/vpb1 1151913482
33 nx dev/vpb2 1151913482
33 nx dev/vpb3 1151913482
33 nx dev/vpb4 1151913482
33 nx dev/vpb5 1151913482
33 nx dev/vpb6 1151913482
33 nx dev/vpb7 1151913482
dir ex dev/zap 1151913482
33 nx dev/zap/1 1151913482
33 nx dev/zap/10 1151913482
33 nx dev/zap/11 1151913482
33 nx dev/zap/12 1151913482
33 nx dev/zap/13 1151913482
33 nx dev/zap/14 1151913482
33 nx dev/zap/15 1151913482
33 nx dev/zap/16 1151913482
33 nx dev/zap/2 1151913482
33 nx dev/zap/3 1151913482
33 nx dev/zap/4 1151913482
33 nx dev/zap/5 1151913482
33 nx dev/zap/6 1151913482
33 nx dev/zap/7 1151913482
33 nx dev/zap/8 1151913482
33 nx dev/zap/9 1151913482
33 nx dev/zap/ctl 1151913482
fil nx /var/pdb/telephony/crc 1151913482
我在ls 查看了一下,没有找到解压出来的文件,请问解压出来的文件在那里啊,是不是我操作不对。。。 早就有人发过这个了:dizzy: 关注一下。 太美老大早发过了 搞不懂了 :o:victory:
页:
[1]
2