Update README
This commit is contained in:
14
README.md
14
README.md
@@ -12,10 +12,12 @@ Build and deploy OpenWRT images using shell-style device profiles, via source co
|
|||||||
--profile,-p PROFILE
|
--profile,-p PROFILE
|
||||||
--release,-r,--version,-v RELEASE ("snapshot", "22.03.3")
|
--release,-r,--version,-v RELEASE ("snapshot", "22.03.3")
|
||||||
--buildroot,-b PATH (Default: script directory)
|
--buildroot,-b PATH (Default: script directory)
|
||||||
--source
|
--cpus,-c NUM
|
||||||
Build image from source code, not from Image Builder.
|
Default: # of host CPUS minus 1
|
||||||
Allows make config options to be passed in profile.
|
--mode,-m imagebuilder|source
|
||||||
Uses git worktree for multi-profile deduplication.
|
Default: imagebuilder
|
||||||
|
--clean clean|targetclean|dirclean|distclean
|
||||||
|
Optional clean step for source mode
|
||||||
--ssh-upgrade HOST
|
--ssh-upgrade HOST
|
||||||
Example: root@192.168.1.1
|
Example: root@192.168.1.1
|
||||||
--ssh-backup SSH_PATH
|
--ssh-backup SSH_PATH
|
||||||
@@ -37,13 +39,13 @@ Build and deploy OpenWRT images using shell-style device profiles, via source co
|
|||||||
|
|
||||||
See `profiles` for example device profile definitions. Multiple `--profile` can be passed at once.
|
See `profiles` for example device profile definitions. Multiple `--profile` can be passed at once.
|
||||||
|
|
||||||
The default build mode is `imagebuilder` unless `--source` is passed. Default profile modes can be set individually in `profiles`.
|
The default build mode is `imagebuilder` unless `--mode=source` is passed. Default profile modes can be set individually in `profiles`.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
* `openwrtbuilder -p r4s -p ax6000`
|
* `openwrtbuilder -p r4s -p ax6000`
|
||||||
* `openwrtbuilder -p r4s -r snapshot --debug`
|
* `openwrtbuilder -p r4s -r snapshot --debug`
|
||||||
* `openwrtbuilder -p ax6000 -r 23.05.5 --source --debug`
|
* `openwrtbuilder -p ax6000 -r 23.05.5 --mode source --debug`
|
||||||
* `openwrtbuilder -p rpi4 -r 23.05.5 --flash /dev/sdX`
|
* `openwrtbuilder -p rpi4 -r 23.05.5 --flash /dev/sdX`
|
||||||
* `openwrtbuilder -p linksys -r snapshot --ssh-upgrade root@192.168.1.1`
|
* `openwrtbuilder -p linksys -r snapshot --ssh-upgrade root@192.168.1.1`
|
||||||
|
|
||||||
|
|||||||
@@ -861,7 +861,7 @@ main() {
|
|||||||
local timestamp
|
local timestamp
|
||||||
timestamp=$(date +%y%m%d%H%M)
|
timestamp=$(date +%y%m%d%H%M)
|
||||||
execute mkdir -p "$BACKUP_DIR/$PROFILE/$REF-$MODE-$timestamp"
|
execute mkdir -p "$BACKUP_DIR/$PROFILE/$REF-$MODE-$timestamp"
|
||||||
execute rsync -a --delete "$BIN_DIR/" "$BACKUP_DIR/$PROFILE/$REF-$MODE-$timestamp/"
|
execute rsync -a --delete --exclude 'packages/' "$BIN_DIR/" "$BACKUP_DIR/$PROFILE/$REF-$MODE-$timestamp/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$MODE" == "source" ]]; then
|
if [[ "$MODE" == "source" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user