diff options
author | Jesse Gilles <jgilles@multitech.com> | 2010-04-30 10:47:02 -0500 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2010-04-30 10:47:02 -0500 |
commit | 9802e241e737255d99471e16843b699bfc3a78ff (patch) | |
tree | f9a3045499410fe5436a7cfdcc675dc69e7b270c /recipes/base-files | |
parent | 9d3906716bb914851945242dc89e09947cdc3ea8 (diff) |
base-files: add corecdp distro, mtcdp machine support
Diffstat (limited to 'recipes/base-files')
-rw-r--r-- | recipes/base-files/base-files/corecdp/issue | 8 | ||||
-rw-r--r-- | recipes/base-files/base-files/corecdp/issue.net | 8 | ||||
-rw-r--r-- | recipes/base-files/base-files/corecdp/profile | 34 | ||||
-rw-r--r-- | recipes/base-files/base-files/mtcdp/fstab | 12 | ||||
-rw-r--r-- | recipes/base-files/base-files/mtcdp/profile | 34 | ||||
-rw-r--r-- | recipes/base-files/base-files_3.0.14.bb | 15 |
6 files changed, 111 insertions, 0 deletions
diff --git a/recipes/base-files/base-files/corecdp/issue b/recipes/base-files/base-files/corecdp/issue new file mode 100644 index 0000000000..82c2f25305 --- /dev/null +++ b/recipes/base-files/base-files/corecdp/issue @@ -0,0 +1,8 @@ + _____ _____ _____ _____ + / ____| / ____| __ \\| __ \\ + | | ___ _ __ ___| | | | | | |__) | + | | / _ \\| '__/ _ \\ | | | | | ___/ + | |____| (_) | | | __/ |____| |__| | | + \\_____|\\___/|_| \\___|\\_____|_____/|_| + +CoreCDP \n \l diff --git a/recipes/base-files/base-files/corecdp/issue.net b/recipes/base-files/base-files/corecdp/issue.net new file mode 100644 index 0000000000..6b53db2894 --- /dev/null +++ b/recipes/base-files/base-files/corecdp/issue.net @@ -0,0 +1,8 @@ + _____ _____ _____ _____ + / ____| / ____| __ \| __ \ + | | ___ _ __ ___| | | | | | |__) | + | | / _ \| '__/ _ \ | | | | | ___/ + | |____| (_) | | | __/ |____| |__| | | + \_____|\___/|_| \___|\_____|_____/|_| + +CoreCDP %h diff --git a/recipes/base-files/base-files/corecdp/profile b/recipes/base-files/base-files/corecdp/profile new file mode 100644 index 0000000000..0879251172 --- /dev/null +++ b/recipes/base-files/base-files/corecdp/profile @@ -0,0 +1,34 @@ +# /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) +# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...). + +PATH="/usr/local/bin:/usr/bin:/bin" +EDITOR="/bin/vi" # needed for packages like cron +test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc. + +if [ ! -e /etc/localtime ]; then + TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html + # for an explanation of how to set this to your local timezone. + export TZ +fi + +if [ "`id -u`" -eq 0 ]; then + PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin +fi +if [ "$PS1" ]; then +# works for bash and ash (no other shells known to be in use here) + PS1='\$ ' +fi + +if [ -d /etc/profile.d ]; then + for i in /etc/profile.d/*.sh; do + if [ -r $i ]; then + . $i + fi + done + unset i +fi + +export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM + +umask 022 + diff --git a/recipes/base-files/base-files/mtcdp/fstab b/recipes/base-files/base-files/mtcdp/fstab new file mode 100644 index 0000000000..84dc1f0fca --- /dev/null +++ b/recipes/base-files/base-files/mtcdp/fstab @@ -0,0 +1,12 @@ +rootfs / auto defaults 1 1 +proc /proc proc defaults 0 0 +devpts /dev/pts devpts mode=0620,gid=5 0 0 +usbfs /proc/bus/usb usbfs defaults 0 0 +tmpfs /var/volatile tmpfs defaults 0 0 +tmpfs /dev/shm tmpfs mode=0777 0 0 +tmpfs /media/ram tmpfs defaults 0 0 + +/dev/mtdblock6 /var/config jffs2 defaults 0 0 + +# SD card +/dev/mmcblk0p1 /media/card auto defaults,sync 0 0 diff --git a/recipes/base-files/base-files/mtcdp/profile b/recipes/base-files/base-files/mtcdp/profile new file mode 100644 index 0000000000..0879251172 --- /dev/null +++ b/recipes/base-files/base-files/mtcdp/profile @@ -0,0 +1,34 @@ +# /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) +# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...). + +PATH="/usr/local/bin:/usr/bin:/bin" +EDITOR="/bin/vi" # needed for packages like cron +test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc. + +if [ ! -e /etc/localtime ]; then + TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html + # for an explanation of how to set this to your local timezone. + export TZ +fi + +if [ "`id -u`" -eq 0 ]; then + PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin +fi +if [ "$PS1" ]; then +# works for bash and ash (no other shells known to be in use here) + PS1='\$ ' +fi + +if [ -d /etc/profile.d ]; then + for i in /etc/profile.d/*.sh; do + if [ -r $i ]; then + . $i + fi + done + unset i +fi + +export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM + +umask 022 + diff --git a/recipes/base-files/base-files_3.0.14.bb b/recipes/base-files/base-files_3.0.14.bb index 483aef7ecd..f2d02b0fa0 100644 --- a/recipes/base-files/base-files_3.0.14.bb +++ b/recipes/base-files/base-files_3.0.14.bb @@ -50,8 +50,23 @@ dirs755_micro = "/dev /proc /sys ${sysconfdir}" dirs2775_micro = "" dirs1777_micro = "/tmp" +dirs755_corecdp = "/bin /boot /dev ${sysconfdir} ${sysconfdir}/default \ + ${sysconfdir}/skel /lib /mnt /proc /home/root /sbin \ + ${prefix} ${bindir} ${docdir} ${includedir} \ + ${libdir} ${sbindir} ${datadir} \ + ${datadir}/common-licenses ${datadir}/dict ${infodir} \ + ${mandir} ${datadir}/misc ${localstatedir} \ + ${localstatedir}/backups ${localstatedir}/lib \ + /sys ${localstatedir}/lib/misc ${localstatedir}/spool \ + ${localstatedir}/volatile ${localstatedir}/volatile/cache \ + ${localstatedir}/volatile/lock/subsys \ + ${localstatedir}/volatile/log \ + ${localstatedir}/volatile/run \ + /mnt /media /media/card /media/ram" + media = "card cf net ram" media_micro = "" +media_corecdp = "card ram" volatiles = "cache run log lock tmp" conffiles = "${sysconfdir}/debian_version ${sysconfdir}/host.conf \ |