summaryrefslogtreecommitdiff
path: root/package/base-files/files
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/files
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/files')
-rw-r--r--package/base-files/files/profile16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/base-files/files/profile b/package/base-files/files/profile
new file mode 100644
index 000000000..eb3015d46
--- /dev/null
+++ b/package/base-files/files/profile
@@ -0,0 +1,16 @@
+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 /'