improved lazyinstall slightly
This commit is contained in:
parent
a815d397d8
commit
85cf679d04
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/ash
|
||||
|
||||
|
||||
echo 'This is the meshenger lazy install!'
|
||||
@ -9,15 +9,27 @@ echo 'more info + manual instructions: https://github.com/jngrt/meshenger'
|
||||
opkg update
|
||||
opkg install block-mount kmod-usb-storage kmod-usb2 kmod-fs-ext4
|
||||
|
||||
sleep 4
|
||||
|
||||
echo 'Mounting USB drive'
|
||||
mkdir /mnt/sda1
|
||||
mount -t ext4 /dev/sda1 /mnt/sda1
|
||||
|
||||
echo 'Cleaning USB drive'
|
||||
|
||||
rm -r /mnt/sda1
|
||||
|
||||
sleep 4
|
||||
|
||||
echo 'Copying filesystem to USB drive'
|
||||
mkdir -p /tmp/cproot
|
||||
mount --bind / /tmp/cproot
|
||||
tar -C /tmp/cproot -cvf - . | tar -C /mnt/sda1 -xf
|
||||
tar -C /tmp/cproot -cvf - . | tar -C /mnt/sda1 -xf -
|
||||
umount /tmp/cproot
|
||||
|
||||
sleep 4
|
||||
echo 'Configuring fstab'
|
||||
|
||||
mv fstab /etc/config/fstab
|
||||
|
||||
echo 'Reboot'
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/ash
|
||||
|
||||
|
||||
echo 'This is the meshenger lazy install part two!'
|
||||
|
@ -8,7 +8,7 @@ config interface 'lan'
|
||||
option ifname 'eth0'
|
||||
option type 'bridge'
|
||||
option proto 'static'
|
||||
option ipaddr '192.168.1.115' #change me!
|
||||
option ipaddr '192.168.1.114' #change me!
|
||||
option netmask '255.255.255.0'
|
||||
option gateway '192.168.1.2' #change me!
|
||||
list dns '8.8.8.8'
|
||||
|
Loading…
Reference in New Issue
Block a user