aboutsummaryrefslogtreecommitdiff
path: root/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'common.sh')
-rw-r--r--common.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/common.sh b/common.sh
index 4f005de..1af840d 100644
--- a/common.sh
+++ b/common.sh
@@ -35,6 +35,11 @@ sshdest() {
awk -F- 'NF > 1 { print $2"."$1; exit } { print $1 }' <<<"$1"
}
+# Reverse opeartion for sshdest
+sshhost() {
+ awk -F. 'NF > 1 { print $2"-"$1; exit } { print $1 }' <<<"$1"
+}
+
_sh() {
if [ $# -gt 1 ]; then
"$@"
@@ -92,6 +97,9 @@ build() {
if [ "$(device_system "$device")" = "armv7l-linux" ]; then
toplevel=".config.system.build.cross.x86_64-linux${toplevel}"
fi
+ if [ "$(device_system "$device")" = "aarch64-linux" ]; then
+ toplevel=".config.system.build.cross.x86_64-linux${toplevel}"
+ fi
stage "Building system for device: $device"
nix build \