From faccb7c619449b04ccebc0b1772f93eb319dc348 Mon Sep 17 00:00:00 2001 From: bryan Date: Mon, 30 Jan 2023 12:31:01 -0500 Subject: [PATCH] Add debug --- openwrtbuilder | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/openwrtbuilder b/openwrtbuilder index 871d73c..a9b2814 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -8,6 +8,9 @@ # # See README.md and ./profiles # +# This will install a lot of system dependencies by default, so I recommend to +# run it in `toolbox` +# # Set default release : "${RELEASE:="22.03.3"}" @@ -29,7 +32,7 @@ printHelp() { --source Build image from source, not from Image Builder --ssh-upgrade HOST - Example: root@192.168.1.1 + Examples: root@192.168.1.1, root@router.lan --ssh-backup SSH_PATH Enabled by default for --ssh-upgrade --flash,-f DEVICE @@ -297,6 +300,10 @@ installDependencies() { "zlib" ) ;; + *) + debug "Skipping dependency install, your OS is unsupported" + return 1 + ;; esac else # For Imagebuilder @@ -335,6 +342,10 @@ installDependencies() { "axel" ) ;; + *) + debug "Skipping dependency install, your OS is unsupported" + return 1 + ;; esac fi