From 69c1dfba1ef4f0e8eaffb557643eee85f71ac844 Mon Sep 17 00:00:00 2001 From: YourFritz Date: Mon, 15 Feb 2016 16:12:29 +0100 Subject: [PATCH] changed pre-/postcheck of gui_boot_manager_v0.2 --- modscripts/gui_boot_manager_v0.2 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modscripts/gui_boot_manager_v0.2 b/modscripts/gui_boot_manager_v0.2 index 1d54e83..507639c 100755 --- a/modscripts/gui_boot_manager_v0.2 +++ b/modscripts/gui_boot_manager_v0.2 @@ -21,13 +21,14 @@ step=$4 # get_brandings() { - local mp="$1" rc=0 path + local mp="$1" rc=0 path brandings path=$(find $mp/etc -type d -name "default.*" | sed -e "\|$mp/etc/default.[0-9]*\$|d") - find $path -type d -maxdepth 1 | sed -n -e "s|$path[/]*||p" | sed -e "/^\$/d" + brandings=$(find $path -type d -maxdepth 1 | sed -n -e "s|$path[/]*||p" | sed -e "/^\$/d") + echo $brandings } rc=0 brandings="$(get_brandings "$rootdir")" -branding="$(sed -n -e 's/^firmware_version\t\(.*\)/\1/p' /proc/sys/urlader/environment)" +branding="$(echo "$brandings" | sed -n -e 's/^\([^ ]*\).*/\1/p')" luafile="$rootdir/usr/www/\$branding/system/reboot.lua" binfile="/usr/bin/guibootmanager" cmdfile="$rootdir$binfile"