本文目录
华为hg8010光猫刷电信界面?
注意:
1、首先要补全shell。
2、只能是光猫原来的界面和华为界面之间互相转换(联通界面和华为界面、移动界面和华为界面、电信界面和华为界面的互相转换)。
3、联通、移动、电信、华为界面之间转换需要将其它的数据上传到光猫。
>界面转换到华为界面:
>telnet 192.168.1.1
root
HW
su
shell
cp -f /mnt/jffs2/hw_ctree.xml /mnt/jffs2/hw_ctree_bak.xml (备份hw_ctree文件)
cp -f /mnt/jffs2/hw_board /mnt/jffs2/hw_board_bak ( 备份hw_board文件)
cp -f /etc/wap/hw_default_ctree.xml /mnt/jffs2/hw_ctree.xml ( 拷贝华为原厂hw_ctree文件)
sed -i 's/^.*obj.id = "0x0000001a" ; obj.value =.*$/obj.id = "0x0000001a" ; obj.value = "COMMON";/' /mnt/jffs2/hw_board
sed -i 's/^.*obj.id = "0x0000001b" ; obj.value =.*$/obj.id = "0x0000001b" ; obj.value = "COMMON";/' /mnt/jffs2/hw_board
sed -i 's/^.*obj.id = "0x00000031" ; obj.value =.*$/obj.id = "0x00000031" ; obj.value = "NOCHOOSE";/' /mnt/jffs2/hw_board
reboot (重新启动)
>恢复界面:
>首先恢复备份的二个文件,然后修改下面红色字符为的数据即可。
>telnet 192.168.100.1
>root
su
shell
cp -f /mnt/jffs2/hw_ctree_bak.xml /mnt/jffs2/hw_ctree.xml
cp -f /mnt/jffs2/hw_board_bak /mnt/jffs2/hw_board
sed -i 's/^.*obj.id = "0x0000001a" ; obj.value =.*$/obj.id = "0x0000001a" ; obj.value = "COMMON";/' /mnt/jffs2/hw_board
sed -i 's/^.*obj.id = "0x0000001b" ; obj.value =.*$/obj.id = "0x0000001b" ; obj.value = "COMMON";/' /mnt/jffs2/hw_board
sed -i 's/^.*obj.id = "0x00000031" ; obj.value =.*$/obj.id = "0x00000031" ; obj.value = "NOCHOOSE";/' /mnt/jffs2/hw_board
reboot
>联通界面:
"0x0000001a" = "COMMON";
"0x0000001b" = "SHCU"; 默认上海联通 (省份名称缩写的大写字母+CU)
"0x00000031" = "CHOOSE_UNICOM2";
>移动界面:
"0x0000001a" = "CMCC";
"0x0000001b" = "CMCC_RMS";
"0x00000031" = "CHOOSE_CMCC_RMS";
>电信界面:
obj.id = "0x0000001a" = "E8C";
obj.id = "0x0000001b" = " *** JCT"; 默认电信 (省份名称缩写的大写字母+CT)
obj.id = "0x00000031" = "CHOOSE_XINAN";
改为华为界面:
注意:命令运行后,会的定制信息,请谨慎使用!
还没有评论,来说两句吧...