diff options
author | David-John Willis <John.Willis@Distant-earth.com> | 2012-04-03 21:26:36 +0100 |
---|---|---|
committer | David-John Willis <John.Willis@Distant-earth.com> | 2012-04-03 21:26:36 +0100 |
commit | 17290c986b72fa6d6ba5d8e698a0cd3d8102e723 (patch) | |
tree | 37d0c8a73753344176f421a60bd9f8eea444ba91 | |
parent | 4a369c92a88815dcad16bc9c2984329ed83f3559 (diff) | |
download | meta-raspberrypi-17290c986b72fa6d6ba5d8e698a0cd3d8102e723.tar.gz |
BASE-FILES: Add RaspberryPi fstab and profile.
-rw-r--r-- | recipes-core/base-files/base-files/raspberrypi/fstab | 9 | ||||
-rw-r--r-- | recipes-core/base-files/base-files/raspberrypi/profile | 33 | ||||
-rw-r--r-- | recipes-core/base-files/base-files_3.0.14.bbappend | 3 |
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 | |||
3 | rootfs / auto defaults,noatime 1 1 | ||
4 | proc /proc proc defaults 0 0 | ||
5 | devpts /dev/pts devpts mode=0620,gid=5 0 0 | ||
6 | usbfs /proc/bus/usb usbfs defaults 0 0 | ||
7 | tmpfs /var/volatile tmpfs defaults 0 0 | ||
8 | tmpfs /dev/shm tmpfs mode=0777 0 0 | ||
9 | tmpfs /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 | |||
4 | PATH="/usr/local/bin:/usr/bin:/bin" | ||
5 | EDITOR="/bin/vi" # needed for packages like cron | ||
6 | test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc. | ||
7 | |||
8 | if [ ! -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 | ||
12 | fi | ||
13 | |||
14 | if [ "`id -u`" -eq 0 ]; then | ||
15 | PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin: | ||
16 | fi | ||
17 | if [ "$PS1" ]; then | ||
18 | # works for bash and ash (no other shells known to be in use here) | ||
19 | PS1='\u@\h:\w\$ ' | ||
20 | fi | ||
21 | |||
22 | if [ -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 | ||
29 | fi | ||
30 | |||
31 | export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM | ||
32 | |||
33 | umask 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 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
2 | # Don't forget to bump PRINC if you update the extra files. | ||
3 | PRINC = "1" | ||