File tree 1 file changed +4
-1
lines changed
packages/bsp/common/usr/bin
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 20
20
# $4 = :space: separated list of all MTD device names
21
21
# Note: MTD char device names are passed in format device_name:partition_label - e.g.: mtd0:SPL
22
22
23
- trap " exit" INT TERM
23
+ trap " systemctl start docker >/dev/null 2>&1; exit" INT TERM
24
24
[[ $EUID != 0 ]] && exec sudo " $0 " " $@ "
25
25
26
26
[[ -f /usr/lib/u-boot/platform_install.sh ]] && source /usr/lib/u-boot/platform_install.sh
@@ -126,6 +126,9 @@ create_armbian()
126
126
# UUID=xxx...
127
127
satauuid=$( blkid -o export " $2 " | grep -w UUID)
128
128
129
+ # disable docker before start
130
+ systemctl is-active --quiet docker && systemctl stop docker
131
+
129
132
# write information to log
130
133
echo -e " \nOld UUID: ${root_uuid} " >> $logfile
131
134
echo " SD UUID: $sduuid " >> $logfile
You can’t perform that action at this time.
0 commit comments