mirror of
https://huihui.cat/mirrors/MikroTikPatch.git
synced 2026-01-28 01:07:18 +01:00
Update chr.sh
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
92f26c270e
commit
88ff1f7130
1 changed files with 2 additions and 1 deletions
3
chr.sh
3
chr.sh
|
|
@ -33,10 +33,11 @@ if LOOP=$(losetup -Pf --show chr.img 2>/dev/null); then
|
|||
MNT=/tmp/chr
|
||||
mkdir -p $MNT
|
||||
if mount ${LOOP}p2 $MNT 2>/dev/null; then
|
||||
cat <<EOF > $MNT/rw/autorun.scr
|
||||
cat <<EOF | tee $MNT/rw/autorun.scr
|
||||
/ip address add address=$ADDRESS interface=ether1
|
||||
/ip route add gateway=$GATEWAY
|
||||
EOF
|
||||
echo "autorun.scr file created."
|
||||
umount $MNT
|
||||
else
|
||||
echo "Failed to mount partition 2, skipping autorun.scr creation."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue