.profile.roku.dev and etc
This commit is contained in:
@@ -70,36 +70,6 @@ jcat()
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user