|
发表于 2021-8-16 11:23:48
|
显示全部楼层
楼主,你这个包有问题吧,执行到后面就这样了。。。
/ M# g% a6 X' G$ `) |3 b6 i" pe8c/hw_ctree_bak.xml2 o& k s- u# a
e8c/hw_default_ctree.xml1 n; y1 O y# R" @# p" R3 M
e8c/recovername3 c; C* G* h% p0 r; a
cp: can't stat '/mnt/jffs2/hw_default_ctree.xml': No such file or directory* M; G, v9 J& C5 \6 n
<hw_ssp_ctool.c:587>file (/tmp/test.gz) open failed, errno (2)+ _" I! e# e) V: @9 q! [
gzip: /tmp/test.gz: No such file or directory! a8 p$ U6 m( D: [
& e$ F* f4 r3 n& B[cfgtool]" `6 o8 k6 n" ~1 N) m
Usage: cfgtool [OPER] [FILE] [PATH] {AttName and Value}! c6 v$ U0 s5 C+ \) S7 D, w
[OPER] : get/gettofile/set/add/del/batch/create
: B3 Q W* v2 l' a- t0 ~; L* `! | [FILE] : deftree/[abs path] r/ x! s1 g f
[PATH] : as, a.b.c(single-instance) or a.b.c.2(multi-instance)
' f, f/ q) u/ F" rExample:
' m3 U1 x/ P9 Z9 w$ Y# A' @ cfgtool add deftree InternetGatewayDevice.LANDevice.LANDeviceInstance.2
/ s4 E4 F3 ^; ?* W cfgtool del deftree InternetGatewayDevice.LANDevice.LANDeviceInstance.2
. x* m! h% I, ^3 S8 h' s cfgtool clone deftree InternetGatewayDevice.Service.VoiceService.VoiceServiceInstance.1 /mnt/jffs2/clone.xml
& p( q9 y6 A: A cfgtool batch deftree /mnt/jffs2/batch.file
# `0 j0 I: y$ o) S) L4 N2 }( I+ x4 ^1 Q+ z! i7 U( Y
/ k' [* _* ^6 M8 l. [. B$ g/ b5 S[cfgtool]5 q4 P, \( n n! W
Usage: cfgtool [OPER] [FILE] [PATH] {AttName and Value}5 @5 I; H$ B9 M4 m4 {2 E* `' y5 Y
[OPER] : get/gettofile/set/add/del/batch/create! L' K: [5 w' ~' }4 t
[FILE] : deftree/[abs path] t& M% |5 y6 i) ?
[PATH] : as, a.b.c(single-instance) or a.b.c.2(multi-instance)$ p, f! W1 h. t) a0 E
Example:1 w' A% _9 M/ ~! F7 i/ ?8 K
cfgtool add deftree InternetGatewayDevice.LANDevice.LANDeviceInstance.2
' a, b, P' ?1 m& x) J cfgtool del deftree InternetGatewayDevice.LANDevice.LANDeviceInstance.2: G* G& S7 Y- O5 y/ ~' q
cfgtool clone deftree InternetGatewayDevice.Service.VoiceService.VoiceServiceInstance.1 /mnt/jffs2/clone.xml
n# \1 n# Q% @1 [( w1 U cfgtool batch deftree /mnt/jffs2/batch.file, R: ~0 {1 o9 G. e" r2 T. f# }4 [
|
|