mirror of
https://github.com/elseif/MikroTikPatch
synced 2026-07-18 02:59:38 +00:00
modified: README.md
modified: README_CN.md
This commit is contained in:
parent
9d07618611
commit
505887e8f3
@ -23,11 +23,12 @@
|
|||||||
install python3-{version}.npk package
|
install python3-{version}.npk package
|
||||||
run telnet to routeros with username devel and password is same as admin
|
run telnet to routeros with username devel and password is same as admin
|
||||||
run python -V
|
run python -V
|
||||||
## How Covert x86 and Chr
|
## How Covert x86 and Chr (Chr mode could auto resize disk)
|
||||||
to Chr,run this command in shell
|
to Chr,run this command in shell
|
||||||
echo -e "\x01" | dd of=/dev/sda bs=1 count=1 seek=336 conv=notrunc
|
echo -e "\x01" | dd of=/dev/sda bs=1 count=1 seek=336 conv=notrunc
|
||||||
to x86,run this command in shell
|
to x86,run this command in shell
|
||||||
echo -e "\x00" | dd of=/dev/sda bs=1 count=1 seek=336 conv=notrunc
|
echo -e "\x00" | dd of=/dev/sda bs=1 count=1 seek=336 conv=notrunc
|
||||||
|
if you want to resize disk,convert to chr first,then resize disk and convert to x86
|
||||||
### npk.py
|
### npk.py
|
||||||
Sign,Verify,Create, Extract npk file.
|
Sign,Verify,Create, Extract npk file.
|
||||||
### patch.py
|
### patch.py
|
||||||
|
|||||||
@ -23,11 +23,12 @@
|
|||||||
安装 python3-{version}.npk 包
|
安装 python3-{version}.npk 包
|
||||||
telnet到RouterOS,用户名devel,密码与admin的密码相同
|
telnet到RouterOS,用户名devel,密码与admin的密码相同
|
||||||
运行 python -V
|
运行 python -V
|
||||||
## x86和Chr如何转换
|
## x86和Chr如何转换(Chr模式自动扩容硬盘)
|
||||||
转换到Chr,在shell中运行下面命令
|
转换到Chr,在shell中运行下面命令
|
||||||
echo -e "\x01" | dd of=/dev/sda bs=1 count=1 seek=336 conv=notrunc
|
echo -e "\x01" | dd of=/dev/sda bs=1 count=1 seek=336 conv=notrunc
|
||||||
转换到x86,在shell中运行下面命令
|
转换到x86,在shell中运行下面命令
|
||||||
echo -e "\x00" | dd of=/dev/sda bs=1 count=1 seek=336 conv=notrunc
|
echo -e "\x00" | dd of=/dev/sda bs=1 count=1 seek=336 conv=notrunc
|
||||||
|
如果硬盘扩容了,需要切换到Chr启动后,硬盘才会自动扩容,然后再切换为x86模式重新启动。
|
||||||
### npk.py
|
### npk.py
|
||||||
对npk文件进行解包,修改,创建,签名和验证
|
对npk文件进行解包,修改,创建,签名和验证
|
||||||
### patch.py
|
### patch.py
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user