More and more busybox love
This commit is contained in:
parent
101cb26549
commit
ae89b7506e
|
@ -4,7 +4,7 @@ PROGRAM=[prgname]
|
|||
PROGRAM_VERSION=[version]
|
||||
PROGRAM_BINARY=$PROGRAM".sh"
|
||||
PROGRAM_BATCH=$PROGRAM"-batch.sh"
|
||||
SCRIPT_BUILD=2016090605
|
||||
SCRIPT_BUILD=2016102201
|
||||
|
||||
## osync / obackup / pmocr / zsnap install script
|
||||
## Tested on RHEL / CentOS 6 & 7, Fedora 23, Debian 7 & 8, Mint 17 and FreeBSD 8 & 10
|
||||
|
@ -78,6 +78,11 @@ function urlencode() {
|
|||
function SetOSSettings {
|
||||
USER=root
|
||||
|
||||
if type busybox > /dev/null 2>&1; then
|
||||
QuickLogger "$0 won't work in busybox. Please use $PROGRAM_BINARY.sh directly."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
local local_os_var
|
||||
|
||||
local_os_var="$(uname -spio 2>&1)"
|
||||
|
|
Loading…
Reference in New Issue