From 6833ce004a8d723d5e85024456f5e00f613c7e9a Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 8 Nov 2020 14:28:51 -0800 Subject: [PATCH] Don't break os_type as it is used later --- setup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 5e5589e8d..99d030c5c 100755 --- a/setup.sh +++ b/setup.sh @@ -442,9 +442,11 @@ else # Ask whether to run at boot time if [ "$atboot" = "" ]; then if echo "$os_type" | grep -q "\-linux$"; then - os_type="linux" + grep_os_type="linux" + else + grep_os_type="$os_type" fi - initsupp=`grep "^os_support=" "$srcdir/init/module.info" | sed -e 's/os_support=//g' | grep $os_type` + initsupp=`grep "^os_support=" "$srcdir/init/module.info" | sed -e 's/os_support=//g' | grep $grep_os_type` atboot=0 if [ "$initsupp" != "" ]; then printf "Start Webmin at boot time (y/n): "