Skip to content

Instantly share code, notes, and snippets.

@danielvijge
danielvijge / first-boot-prepare
Last active January 10, 2024 06:08
Setup script to install packages on OpenWRT router after upgrade
#!/bin/ash
# Update the package list
echo "Updating package list..."
echo ""
opkg update
echo ""
# Install some package
echo "Installing extra packages..."
@danielvijge
danielvijge / upgrade-all-packages
Last active January 21, 2023 17:31
Upgrade all packages on OpenWRT router
#!/bin/ash
source /etc/openwrt_release
echo "$DISTRIB_ID $DISTRIB_RELEASE"
rm -f /tmp/releases.html
wget -q https://downloads.openwrt.org/releases/ -O /tmp/releases.html
LATEST_RELEASE=`grep -o 'href="[0-9.]*/"' /tmp/releases.html | tail -1 | cut -d'"' -f2 | cut -d'/' -f1`
rm -f /tmp/releases.html
@danielvijge
danielvijge / _connection.py
Last active August 29, 2015 14:04
Viacom fix for USTV VoD
#!/usr/bin/python
# -*- coding: utf-8 -*-
import _addoncompat
import cookielib
import os
import simplejson
import urllib
import urllib2
import socks
import socket
#!/usr/bin/python
# -*- coding: utf-8 -*-
import _addoncompat
import _common
import _connection
import _main_viacom
import re
import sys
import urllib
import simplejson
#!/usr/bin/python
# -*- coding: utf-8 -*-
import _addoncompat
import _common
import _connection
import _main_viacom
import re
import sys
import urllib
import simplejson
@danielvijge
danielvijge / gist:3246790
Created August 3, 2012 11:26
XBMC for CuBox (Native VMeta version) - based on https://github.com/huceke/xbmc/commits/marvell-dove
diff --git a/configure.in b/configure.in
index bca9239..abe2b49 100755
--- a/configure.in
+++ b/configure.in
@@ -151,6 +151,12 @@ AC_ARG_WITH([arch],
[use_arch=$withval],
[use_arch=no])
+AC_ARG_WITH([platform],
+ [AS_HELP_STRING([--with-platform],
@danielvijge
danielvijge / gist:3246636
Created August 3, 2012 10:52
XBMC for CuBox (GStreamer version) - based on https://github.com/rabeeh/xbmc
diff --git a/configure.in b/configure.in
index bca9239..8a88260 100755
--- a/configure.in
+++ b/configure.in
@@ -118,6 +118,8 @@ libplist_not_found="== Could not find libplist. AirPlay support disabled. =="
libplist_disabled="== AirPlay support disabled. =="
alsa_not_found="== Could not find ALSA. ALSA support disabled. =="
dbus_not_found="== Could not find DBUS. DBUS support disabled. =="
+gstreamer_not_found="== GStreamer libraries not found. GStreamer support disabled. =="
+gstreamer_disabled="== GStreamer support manually disabled. =="