summaryrefslogtreecommitdiff
path: root/system/easy-boot/update-boot
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2020-07-10 23:49:22 -0500
committerMax Rees <maxcrees@me.com>2020-07-11 11:40:08 -0500
commita4fa08b06393fab44ff6937352937a4d4404f328 (patch)
tree6f4892edf9242ab5a68957d0c8867b99c34d0c86 /system/easy-boot/update-boot
parentcdf5ba44d183e7f4bcbedb46e4945181863e16e6 (diff)
downloadpackages-a4fa08b06393fab44ff6937352937a4d4404f328.tar.gz
packages-a4fa08b06393fab44ff6937352937a4d4404f328.tar.bz2
packages-a4fa08b06393fab44ff6937352937a4d4404f328.tar.xz
packages-a4fa08b06393fab44ff6937352937a4d4404f328.zip
system/easy-boot: new package
Diffstat (limited to 'system/easy-boot/update-boot')
-rw-r--r--system/easy-boot/update-boot13
1 files changed, 13 insertions, 0 deletions
diff --git a/system/easy-boot/update-boot b/system/easy-boot/update-boot
new file mode 100644
index 000000000..a3e45ebf4
--- /dev/null
+++ b/system/easy-boot/update-boot
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+rc=0
+
+for i in /etc/easy-boot.d/*; do
+ [ -x "$i" ] || continue
+ printf '>>> %s\n' "${i##*/}" >&2
+ if ! "$i"; then
+ printf '>>> Kernel boot hook failed!\n' >&2
+ rc="$((rc + 1))"
+ fi
+done
+
+exit "$rc"