generated from me/template-mit
Add functions for full level reload and update.
This commit is contained in:
34
rc_shared.sh
34
rc_shared.sh
@@ -144,6 +144,40 @@ alias shared-update="update-shared"
|
||||
alias reload-shared="update-shared"
|
||||
alias shared-reload="update-shared"
|
||||
|
||||
function reload-all {
|
||||
log "`date` - Reloading BASH"
|
||||
reload-bash
|
||||
|
||||
log "\n`date` - Reloading Main (Termux/Ansible)"
|
||||
if [[ -d /sdcard ]]; then
|
||||
reload-termux
|
||||
else
|
||||
scm.sh
|
||||
fi
|
||||
reload-bash
|
||||
|
||||
log "\n`date` - Reloading Shared"
|
||||
reload-shared
|
||||
reload-bash
|
||||
}
|
||||
alias all-reload="reload-all"
|
||||
|
||||
function update-all {
|
||||
log "`date` - Updating env projects..."
|
||||
reload-all
|
||||
|
||||
log "\n\n\n`date` - Running system updates..."
|
||||
update -y
|
||||
|
||||
if [[ $(type -t update-sdk 2>/dev/null 1>&2) ]]; then
|
||||
log "\n\n\n`date` - Updating SDKs..."
|
||||
update-sdk
|
||||
fi
|
||||
|
||||
log "\n\n\n`date` - Done with update-all!"
|
||||
}
|
||||
alias all-update="update-all"
|
||||
|
||||
# Shortcuts #
|
||||
|
||||
function send-master { send_master.sh; }
|
||||
|
||||
Reference in New Issue
Block a user