new commands: sideload, install_auth_token ...
This commit is contained in:
@@ -7,6 +7,11 @@ export ROKU_NFS_ROOT=$HOME/roku/nfs
|
|||||||
export ROKU_NFS_IP=192.168.0.64
|
export ROKU_NFS_IP=192.168.0.64
|
||||||
export EXPORTROOT=${ROKU_NFS_ROOT}
|
export EXPORTROOT=${ROKU_NFS_ROOT}
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
#
|
||||||
|
# Build
|
||||||
|
#
|
||||||
|
|
||||||
# This is needed to be able to set brake point on /bin/Application
|
# This is needed to be able to set brake point on /bin/Application
|
||||||
export PAX_DEBUG=on
|
export PAX_DEBUG=on
|
||||||
|
|
||||||
@@ -100,8 +105,13 @@ build()
|
|||||||
DOCKER=1
|
DOCKER=1
|
||||||
;;
|
;;
|
||||||
reno|\
|
reno|\
|
||||||
|
nemo|\
|
||||||
|
rockett|\
|
||||||
bailey|\
|
bailey|\
|
||||||
marlin|\
|
marlin|\
|
||||||
|
brewster|\
|
||||||
|
benjamin|\
|
||||||
|
benjaminw|\
|
||||||
loggan|\
|
loggan|\
|
||||||
madison)
|
madison)
|
||||||
BUILD_PLATFORM=$1
|
BUILD_PLATFORM=$1
|
||||||
@@ -118,11 +128,13 @@ build()
|
|||||||
addon-checksums|\
|
addon-checksums|\
|
||||||
addon-checksum-check|\
|
addon-checksum-check|\
|
||||||
clean|\
|
clean|\
|
||||||
|
cleanall|\
|
||||||
clobber|\
|
clobber|\
|
||||||
build-tests-all|\
|
build-tests-all|\
|
||||||
build-tests-ZipMountServerTest|\
|
build-tests-ZipMountServerTest|\
|
||||||
build-tests-FuseServerTest|\
|
build-tests-FuseServerTest|\
|
||||||
build-tests-PluginPackageManagemnetPluginUnitTests|\
|
build-tests-PluginPackageManagemnetPluginUnitTests|\
|
||||||
|
make_custom_package|\
|
||||||
clobber-all)
|
clobber-all)
|
||||||
TARGET=$1
|
TARGET=$1
|
||||||
;;
|
;;
|
||||||
@@ -178,6 +190,7 @@ build()
|
|||||||
#make ENABLE_ICECC=1 PAX_DEBUG=on BUILD_PLATFORM=$1 -j $(nproc) -C os all
|
#make ENABLE_ICECC=1 PAX_DEBUG=on BUILD_PLATFORM=$1 -j $(nproc) -C os all
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#
|
#
|
||||||
# Logging
|
# Logging
|
||||||
@@ -218,13 +231,6 @@ ldevice()
|
|||||||
minicom "$@" -C $LOGDIR/minicom.log.$(date +%Y-%m-%d--%H-%M-%S)
|
minicom "$@" -C $LOGDIR/minicom.log.$(date +%Y-%m-%d--%H-%M-%S)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
rokuget()
|
|
||||||
{
|
|
||||||
wget --no-check-certificate --user=vkhachatryan --ask-password $1
|
|
||||||
}
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#
|
#
|
||||||
# Downloaded logs.
|
# Downloaded logs.
|
||||||
@@ -243,6 +249,36 @@ jcat()
|
|||||||
cat $(jfile $1)
|
cat $(jfile $1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
#
|
||||||
|
# Misc
|
||||||
|
#
|
||||||
|
|
||||||
|
rokuget()
|
||||||
|
{
|
||||||
|
[ -z "$1" ] && echo "usage: rokuget <url>" && return 0
|
||||||
|
if [ -z "$ROKU_CORP_PASSWORD" ]; then
|
||||||
|
local USER_PASSWORD="--ask-password"
|
||||||
|
else
|
||||||
|
local USER_PASSWORD="--password=$ROKU_CORP_PASSWORD"
|
||||||
|
fi
|
||||||
|
wget --no-check-certificate --user=vkhachatryan $USER_PASSWORD $1
|
||||||
|
}
|
||||||
|
|
||||||
|
install_auth_token()
|
||||||
|
{
|
||||||
|
[ ! -f "$1" ] && echo "usage: install_auth_toke <auth token file>" && return 0
|
||||||
|
[ -z "$ROKU_DEVICE_IP" ] && echo "ROKU_DEVICE_IP must be defined" && return 0
|
||||||
|
curl --data-binary @$1 http://$ROKU_DEVICE_IP:8060/token/install
|
||||||
|
}
|
||||||
|
|
||||||
|
sideload()
|
||||||
|
{
|
||||||
|
[ ! -f "$1" ] && echo "usage: sideload <file>" && return 0
|
||||||
|
[ -z "$ROKU_DEVICE_IP" ] && echo "ROKU_DEVICE_IP must be defined" && return 0
|
||||||
|
curl --anyauth --user "rokudev:aaaa" -F "mysubmit=Install_Netflix" -F "archive=@$1" http://$ROKU_DEVICE_IP/plugin_install
|
||||||
|
}
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#
|
#
|
||||||
# Other helpers
|
# Other helpers
|
||||||
|
|||||||
Reference in New Issue
Block a user