summaryrefslogtreecommitdiff
path: root/package/base-files/src
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-12-23 22:02:03 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-12-23 22:04:03 +0100
commit71da71d92d57421fb3546986f68e854ae472cf1a (patch)
tree2d7bdbed1aa515928232a5947abd2b7e863b9412 /package/base-files/src
parent3863dc6122a090399e236326f29a1094e6a856e8 (diff)
optimize for really small systems
Default to busybox hush for noMMU systems. Add busybox profiles to choose a minimal busybox config for noMMU systems. Add gdb git from ysato for h8/300 simulator. Change some kernel defaults to off to have a really small kernel. For bfin simulator the kernel+initramfs is smaller then 2MB in size.
Diffstat (limited to 'package/base-files/src')
-rwxr-xr-xpackage/base-files/src/etc/init.d/rcS7
-rw-r--r--package/base-files/src/etc/profile16
2 files changed, 4 insertions, 19 deletions
diff --git a/package/base-files/src/etc/init.d/rcS b/package/base-files/src/etc/init.d/rcS
index 14fd3bc5d..4ca17abbc 100755
--- a/package/base-files/src/etc/init.d/rcS
+++ b/package/base-files/src/etc/init.d/rcS
@@ -73,7 +73,8 @@ fi
done
} |tee /dev/stderr |logger -p 6 -t ''
-if [ $rcquiet -ne 1 ];then
- ipaddr=$(ip addr show $(ip route show|awk '/default/ { print $5 }')|awk '/inet / { print $2 }'|tail -1)
- echo "Your ip adress is $ipaddr"
+if [ $rcquiet -ne 1 ]; then
+ if [ -f /etc/rc.netinfo ]; then
+ . /etc/rc.netinfo
+ fi
fi
diff --git a/package/base-files/src/etc/profile b/package/base-files/src/etc/profile
deleted file mode 100644
index eb3015d46..000000000
--- a/package/base-files/src/etc/profile
+++ /dev/null
@@ -1,16 +0,0 @@
-export PATH=/bin:/sbin:/usr/bin:/usr/sbin
-export EDITOR=/bin/vi
-if [[ $(id -u) = 0 ]]; then
- export PS1='`whoami`@`hostname`:`pwd` # '
-else
- export PS1='`whoami`@`hostname`:`pwd` $ '
-fi
-cat /etc/banner 2>&-
-[ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi
-[ -x /usr/bin/arp ] || arp() { cat /proc/net/arp; }
-[ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 "$@"; }
-alias l='ls -lF'
-alias la='ls -A'
-alias ll='ls -alF'
-alias ro='mount -o remount,ro /'
-alias rw='mount -o remount,rw /'