change box image directory to boxes/apuimages

This commit is contained in:
zolliker 2024-03-05 09:59:32 +01:00
parent 4ef297b74b
commit 33e45d5eb9
5 changed files with 7 additions and 8 deletions

View File

@ -2,4 +2,4 @@
TinyCoreLinux system on a bootable USB stick for installing an APU from scratch
see aputools/README.md for details
see boxtools/README.md for details

4
clone
View File

@ -1,7 +1,7 @@
sh tiny
HOST=l_samenv@samenv
DIR=boxes/images
IMGDAT=apumaster_$(date +'%Y-%m-%d').lz4
DIR=boxes/apuimages
IMGDAT=$(date +'%Y-%m-%d').lz4
read -p "image name to write to $HOST:$DIR [$IMGDAT]: " IMG
if [ -z "$IMG" ]; then
IMG=$IMGDAT

4
reg
View File

@ -1,10 +1,10 @@
echo -n "new hostname: "
read hostname
sudo hostname $hostname
echo "address of leftmost socket eth0 (for control box):"
echo "address of leftmost socket (eth0 for control box, recommended also for newer bare apus):"
ifconfig | grep eth0
echo " "
echo "address of rightmost socket (for bare apu):"
echo "address of rightmost socket (for legacy bare apu):"
ifconfig | grep eth3
echo " "
echo "register $hostname to packet fence and connect LAN to corresponding socket"

1
tiny
View File

@ -9,4 +9,3 @@ EOF
cp -r ssh ~/.ssh
sudo chmod go-r ~/.ssh/id_rsa
ifconfig | grep 'inet addr'

View File

@ -1,9 +1,9 @@
sh tiny
BOXIMG=boxes/images
BOXIMG=boxes/apuimages
echo ""
echo "images from l_samenv@samenv:$BOXIMG:"
echo ""
ssh l_samenv@samenv "cd $BOXIMG; ls apumaster*.lz4"
ssh l_samenv@samenv "cd $BOXIMG; ls *.lz4"
echo ""
read -p "which image? " IMG
echo "write to ssd /dev/sda (takes 3 min)"