summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid-John Willis <John.Willis@Distant-earth.com>2012-04-03 21:26:36 +0100
committerDavid-John Willis <John.Willis@Distant-earth.com>2012-04-03 21:26:36 +0100
commit17290c986b72fa6d6ba5d8e698a0cd3d8102e723 (patch)
tree37d0c8a73753344176f421a60bd9f8eea444ba91
parent4a369c92a88815dcad16bc9c2984329ed83f3559 (diff)
downloadmeta-raspberrypi-17290c986b72fa6d6ba5d8e698a0cd3d8102e723.tar.gz
BASE-FILES: Add RaspberryPi fstab and profile.
-rw-r--r--recipes-core/base-files/base-files/raspberrypi/fstab9
-rw-r--r--recipes-core/base-files/base-files/raspberrypi/profile33
-rw-r--r--recipes-core/base-files/base-files_3.0.14.bbappend3
3 files changed, 45 insertions, 0 deletions
diff --git a/recipes-core/base-files/base-files/raspberrypi/fstab b/recipes-core/base-files/base-files/raspberrypi/fstab
new file mode 100644
index 0000000..55da1df
--- /dev/null
+++ b/recipes-core/base-files/base-files/raspberrypi/fstab
@@ -0,0 +1,9 @@
1# stock fstab for the RaspberryPi - you may want to tweak this to suit.
2
3rootfs / auto defaults,noatime 1 1
4proc /proc proc defaults 0 0
5devpts /dev/pts devpts mode=0620,gid=5 0 0
6usbfs /proc/bus/usb usbfs defaults 0 0
7tmpfs /var/volatile tmpfs defaults 0 0
8tmpfs /dev/shm tmpfs mode=0777 0 0
9tmpfs /media/ram tmpfs defaults 0 0
diff --git a/recipes-core/base-files/base-files/raspberrypi/profile b/recipes-core/base-files/base-files/raspberrypi/profile
new file mode 100644
index 0000000..55568ad
--- /dev/null
+++ b/recipes-core/base-files/base-files/raspberrypi/profile
@@ -0,0 +1,33 @@
1# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
2# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
3
4PATH="/usr/local/bin:/usr/bin:/bin"
5EDITOR="/bin/vi" # needed for packages like cron
6test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc.
7
8if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then
9 TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html
10 # for an explanation of how to set this to your local timezone.
11 export TZ
12fi
13
14if [ "`id -u`" -eq 0 ]; then
15 PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin:
16fi
17if [ "$PS1" ]; then
18# works for bash and ash (no other shells known to be in use here)
19 PS1='\u@\h:\w\$ '
20fi
21
22if [ -d /etc/profile.d ]; then
23 for i in /etc/profile.d/*.sh; do
24 if [ -r $i ]; then
25 . $i
26 fi
27 done
28 unset i
29fi
30
31export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM
32
33umask 022
diff --git a/recipes-core/base-files/base-files_3.0.14.bbappend b/recipes-core/base-files/base-files_3.0.14.bbappend
new file mode 100644
index 0000000..36432f5
--- /dev/null
+++ b/recipes-core/base-files/base-files_3.0.14.bbappend
@@ -0,0 +1,3 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2# Don't forget to bump PRINC if you update the extra files.
3PRINC = "1"