CHR安装命令
CHR 6.48.4 硬盘sda
yum install unzip -y
wget -O chr.img.zip https://gitee.com/wendy-tools/install/releases/download/6.48.4/chr-6.48.4.img.zip && \
gunzip -c chr.img.zip > chr.img && \
mount -o loop,offset=512 chr.img /mnt && \
ADDRESS=`ip addr show eth0 | grep global | cut -d' ' -f 6 | head -n 1` && \
GATEWAY=`ip route list | grep default | cut -d' ' -f 3` && \
mkdir -p /mnt/rw && \
echo "/ip address add address=$ADDRESS interface=[/interface ethernet find where name=ether1]
/ip route add gateway=$GATEWAY
" > /mnt/rw/autorun.scr && \
umount /mnt && \
echo u > /proc/sysrq-trigger && \
dd if=chr.img bs=1024 of=/dev/sda && \
reboot
Chr
yum install unzip -y
wget -O chr.img.zip https://gitee.com/wendy-tools/install/releases/download/6.48.4/chr-6.48.4.img.zip && \
gunzip -c chr.img.zip > chr.img && \
mount -o loop,offset=512 chr.img /mnt && \
ADDRESS=`ip addr show eth0 | grep global | cut -d' ' -f 6 | head -n 1` && \
GATEWAY=`ip route list | grep default | cut -d' ' -f 3` && \
mkdir -p /mnt/rw && \
echo "/ip address add address=$ADDRESS interface=[/interface ethernet find where name=ether1]
/ip route add gateway=$GATEWAY
" > /mnt/rw/autorun.scr && \
umount /mnt && \
echo u > /proc/sysrq-trigger && \
dd if=chr.img bs=1024 of=/dev/vda && \
reboot
s
yum install unzip -y
wget -O chr.img.zip http://ros-pack.mrli888.cn:6080/7.14.3/chr-7.14.3.img.zip && \
gunzip -c chr.img.zip > chr.img && \
mount -o loop,offset=17408 chr.img /mnt && \
ADDRESS=`ip addr show eth0 | grep global | cut -d' ' -f 6 | head -n 1` && \
GATEWAY=`ip route list | grep default | cut -d' ' -f 3` && \
mkdir -p /mnt/rw && \
echo "/ip address add address=$ADDRESS interface=[/interface ethernet find where name=ether1]
/ip route add gateway=$GATEWAY
" > /mnt/rw/autorun.scr && \
umount /mnt && \
echo u > /proc/sysrq-trigger && \
dd if=chr.img bs=1024 of=/dev/sda && \
reboot
v
yum install unzip -y
wget -O chr.img.zip http://ros-pack.mrli888.cn:6080/7.14.3/chr-7.14.3.img.zip && \
gunzip -c chr.img.zip > chr.img && \
mount -o loop,offset=17408 chr.img /mnt && \
ADDRESS=`ip addr show eth0 | grep global | cut -d' ' -f 6 | head -n 1` && \
GATEWAY=`ip route list | grep default | cut -d' ' -f 3` && \
mkdir -p /mnt/rw && \
echo "/ip address add address=$ADDRESS interface=[/interface ethernet find where name=ether1]
/ip route add gateway=$GATEWAY
" > /mnt/rw/autorun.scr && \
umount /mnt && \
echo u > /proc/sysrq-trigger && \
dd if=chr.img bs=1024 of=/dev/vda && \
reboot
dncp
yum install unzip -y
wget -O chr.img.zip http://ros-pack.mrli888.cn:6080/7.14.3/chr-7.14.3.img.zip && \
gunzip -c chr.img.zip > chr.img && \
mount -o loop,offset=17408 chr.img /mnt && \
mkdir -p /mnt/rw &&\
echo "/ip dhcp-client add comment=defconf interface=[/interface ethernet find where name=ether1]
" > /mnt/rw/autorun.scr && \
umount /mnt && \
echo u > /proc/sysrq-trigger && \
dd if=chr.img bs=1024 of=/dev/vda && \
reboot