summaryrefslogtreecommitdiff
path: root/scripts/upgrade/build.sh
blob: a796c2cdbab960c04284e401d63698554fa73d3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

dir=$(ls -d upgrade-*)
sed "s/UPGRADE_DIR/${dir}/" install.template >install.sh
echo "Upgrade directory is ${dir}"
cat install.sh | md5sum >install.sh.md5
cd upgrade-*
cat local.conf | md5sum >local.conf.md5
cat install_list.txt | md5sum >install_list.txt.md5
cd ..
set -x
chmod +x install.sh
tar --owner=0 --group=0 -cJf ~/${dir}.bin model install.sh* upgrade-*