summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2019-08-21 23:31:15 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2019-08-21 23:31:15 +0200
commit8c24e930a269eee97784c8dad52f1ba222cff201 (patch)
tree7876c4c406e2f133917b1aaf8708dc66fabe2b27
parent91c828ee147ba62ea5c614912e24ed63a5014e02 (diff)
downloadeficast-8c24e930a269eee97784c8dad52f1ba222cff201.tar.gz
eficast-8c24e930a269eee97784c8dad52f1ba222cff201.tar.bz2
eficast-8c24e930a269eee97784c8dad52f1ba222cff201.zip
Fix minor shell error message "arithmetic error" in rc2
-rwxr-xr-xmake-boot-image.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/make-boot-image.sh b/make-boot-image.sh
index 88f3e68..855176d 100755
--- a/make-boot-image.sh
+++ b/make-boot-image.sh
@@ -648,7 +648,9 @@ network_up
network_conf
network_show
machine_info
-/etc/rc.d/initrd-autorun && eficast_end
+set -e # Go in rescue shell if any futher step goes wrong
+/etc/rc.d/initrd-autorun
+eficast_end
EOF
add_initrd_script etc/rc.d/initrd-autorun <<"EOF"
echo -ne "\e]2;$0\007" # Term title (tmux)