summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README11
-rwxr-xr-xbuild.sh10
2 files changed, 12 insertions, 9 deletions
diff --git a/README b/README
index 4c4fd32..7e5cfbf 100644
--- a/README
+++ b/README
@@ -16,3 +16,14 @@ It's recommended you use Debian or Ubuntu on the build system. The following add
Configuration
-------------
Refer to the top of build.sh.
+
+Usage
+-----
+./build.sh [-a|--arch <x86_64|i686>] [-v|--version <version>] [-p|--packages <packages>] [-f|--files] [--help]
+
+Example
+-------
+./build.sh -v 18.06.1
+lxc image import bin/openwrt-18.06.1-x86-64-lxd.tar.gz --alias openwrt
+lxc launch openwrt router
+lxc exec router passwd root
diff --git a/build.sh b/build.sh
index 5ab166d..adb2e4c 100755
--- a/build.sh
+++ b/build.sh
@@ -221,19 +221,11 @@ EOF
# template: hostname.tpl
}
-build_image() {
- lxc image import $lxc_tar
-}
-
download_rootfs
download_sdk
download_procd
build_procd
build_metadata
build_tarball
-build_image
-echo \# start
-echo "lxc launch $image <name>"
-echo \# set root password
-echo "lxc exec <name> passwd root"
+echo "Tarball built: $lxc_tar"