summaryrefslogtreecommitdiff
path: root/target/linux/sunxi/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/sunxi/base-files')
-rw-r--r--target/linux/sunxi/base-files/etc/inittab5
-rw-r--r--target/linux/sunxi/base-files/etc/uci-defaults/02_network30
-rw-r--r--target/linux/sunxi/base-files/lib/preinit/01_preinit_sunxi.sh9
-rw-r--r--target/linux/sunxi/base-files/lib/sunxi.sh45
4 files changed, 0 insertions, 89 deletions
diff --git a/target/linux/sunxi/base-files/etc/inittab b/target/linux/sunxi/base-files/etc/inittab
deleted file mode 100644
index e9de30b..0000000
--- a/target/linux/sunxi/base-files/etc/inittab
+++ /dev/null
@@ -1,5 +0,0 @@
-::sysinit:/etc/init.d/rcS S boot
-::shutdown:/etc/init.d/rcS K shutdown
-tts/0::askfirst:/bin/ash --login
-ttyS0::askfirst:/bin/ash --login
-tty1::askfirst:/bin/ash --login
diff --git a/target/linux/sunxi/base-files/etc/uci-defaults/02_network b/target/linux/sunxi/base-files/etc/uci-defaults/02_network
deleted file mode 100644
index 3807926..0000000
--- a/target/linux/sunxi/base-files/etc/uci-defaults/02_network
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2013 OpenWrt.org
-#
-
-[ -e /etc/config/network ] && exit 0
-
-touch /etc/config/network
-
-. /lib/functions/uci-defaults.sh
-
-ucidef_set_interface_loopback
-
-case "`cat /proc/device-tree/model`" in
-"Cubietech Cubieboard" |\
-"Cubietech Cubieboard2" |\
-"LinkSprite pcDuino" |\
-"LinkSprite pcDuino V3" |\
-"Olimex A10-OLinuXino-LIME" |\
-"Olimex A20-Olinuxino Micro")
- ucidef_set_interface_lan 'eth0'
- ;;
-"Olimex A13-Olinuxino")
- ucidef_set_interface_lan 'wlan0'
- ;;
-esac
-
-uci commit network
-
-exit 0
diff --git a/target/linux/sunxi/base-files/lib/preinit/01_preinit_sunxi.sh b/target/linux/sunxi/base-files/lib/preinit/01_preinit_sunxi.sh
deleted file mode 100644
index f221dbc..0000000
--- a/target/linux/sunxi/base-files/lib/preinit/01_preinit_sunxi.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-do_sunxi() {
- . /lib/sunxi.sh
-
- sunxi_board_detect
-}
-
-boot_hook_add preinit_main do_sunxi
diff --git a/target/linux/sunxi/base-files/lib/sunxi.sh b/target/linux/sunxi/base-files/lib/sunxi.sh
deleted file mode 100644
index adf9f84..0000000
--- a/target/linux/sunxi/base-files/lib/sunxi.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-
-# defaults
-SUNXI_BOARD_NAME="generic sunxi"
-SUNXI_BOARD_MODEL="generic sunxi"
-SUNXI_ENV_DEV=/dev/mmcblk0
-
-#Helper functions
-get_cmdline_opt()
-{
-cat /proc/cmdline | awk -F$1= '{print $2}' | awk '{print $1}'
-}
-
-#Since fw_getenv doesn't work with blockdevs let's make a hack
-uboot_getenv()
-{
- dd if=$SUNXI_ENV_DEV bs=1024 skip=544 count=128 2>dev/null |\strings|grep $1|cut -d"=" -f2
-}
-
-#Actual routines go below
-sunxi_env_dev()
-{
- local dev
- dev=`get_cmdline_opt root|cut -d"p" -f1`
- SUNXI_ENV_DEV=$dev
- echo "probing $dev for uboot env data"
-}
-
-sunxi_board_detect() {
- local board
- local model
- sunxi_env_dev
- [ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
- board="`uboot_getenv wrt_board`"
- model="`uboot_getenv wrt_model`"
- if [ "$board" != "" ]; then
- SUNXI_BOARD_NAME="$board"
- fi
- if [ "$model" != "" ]; then
- SUNXI_BOARD_MODEL="$model"
- fi
- echo "$SUNXI_BOARD_NAME" > /tmp/sysinfo/board_name
- echo "$SUNXI_BOARD_MODEL" > /tmp/sysinfo/model
- echo "Detected $SUNXI_BOARD_NAME // $SUNXI_BOARD_MODEL"
-}