2019-06-15 23:02:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-07-31 23:14:58 +00:00
|
|
|
# DEPRECATED DEVICES: raspi3
|
|
|
|
|
|
|
|
# Make each device
|
2022-10-09 01:28:05 +00:00
|
|
|
for i in 'raspi4' 'debian' 'rockpro64' 'rock64' 'rockpi4' ; do
|
2022-12-30 02:13:36 +00:00
|
|
|
echo "Creating root file system for $i"
|
2019-11-06 22:15:33 +00:00
|
|
|
mkdir -p out/rootfs_$i/
|
2022-08-19 06:00:40 +00:00
|
|
|
|
|
|
|
# Clear out data for old apps
|
|
|
|
rm -rf out/rootfs_$i/usr/share/mynode_apps
|
|
|
|
|
|
|
|
# Make rootfs
|
2019-11-06 22:15:33 +00:00
|
|
|
rsync -r -u rootfs/standard/* out/rootfs_$i/
|
|
|
|
rsync -r -u rootfs/$i/* out/rootfs_$i/
|
|
|
|
rsync -r -u CHANGELOG out/rootfs_$i/usr/share/mynode/changelog
|
2020-02-17 04:27:27 +00:00
|
|
|
cp -f setup/setup_device.sh out/setup_device.sh
|
2021-04-22 05:19:12 +00:00
|
|
|
#cp -f rootfs/standard/usr/share/mynode/mynode_app_versions.sh out/mynode_app_versions.sh
|
2019-12-06 03:30:23 +00:00
|
|
|
|
2019-11-06 22:15:33 +00:00
|
|
|
rm -f out/mynode_rootfs_$i.tar.gz
|
2020-02-17 04:27:27 +00:00
|
|
|
tar -zcf out/mynode_rootfs_$i.tar.gz out/rootfs_$i/*
|
2019-11-06 22:15:33 +00:00
|
|
|
done
|
2020-02-17 04:27:27 +00:00
|
|
|
echo Done!
|