pandora-skel: Update /etc/skel defaults.
authorDavid-John Willis <John.Willis@Distant-earth.com>
Tue, 1 Dec 2009 18:20:06 +0000 (18:20 +0000)
committerDavid-John Willis <John.Willis@Distant-earth.com>
Tue, 1 Dec 2009 18:20:06 +0000 (18:20 +0000)
recipes/pandora-system/pandora-skel.bb
recipes/pandora-system/pandora-skel/bashrc [new file with mode: 0644]
recipes/pandora-system/pandora-skel/mplayconfig [new file with mode: 0644]
recipes/pandora-system/pandora-skel/profile [new file with mode: 0644]

index c647f2d..9784460 100644 (file)
@@ -2,18 +2,26 @@ DESCRIPTION = "Default 'new user' files on the OpenPandora."
 
 COMPATIBLE_MACHINE = "omap3-pandora"
 
-## /etc/skel is used by Shadow's useradd so you really have that installed for this to make sense ;)
-#RDEPENDS = "shadow"
+# /etc/skel is used by Shadow's useradd so you really have that installed for this to make sense ;)
+RDEPENDS = "shadow"
 
-PR = "r3"
+PR = "r2"
 
 SRC_URI = " \
-          file://.xinitrc \     
+  file://.xinitrc \     
+  file://bashrc \
+  file://profile \
+  file://mplayconfig \
 "
 
 do_install() {
-          install -d ${D}${sysconfdir}/skel/
-          install -m 0777 ${WORKDIR}/.xinitrc ${D}${sysconfdir}/skel/         
+  install -d ${D}${sysconfdir}/skel/
+  install -m 0644 ${WORKDIR}/.xinitrc ${D}${sysconfdir}/skel/
+  install -m 0644 ${WORKDIR}/bashrc ${D}${sysconfdir}/skel/.bashrc
+  install -m 0644 ${WORKDIR}/profile ${D}${sysconfdir}/skel/.profile
+
+  install -d ${D}${sysconfdir}/skel/.mplayer/
+  install -m 0644 ${WORKDIR}/mplayconfig ${D}${sysconfdir}/skel/.mplayer/config
 }
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/recipes/pandora-system/pandora-skel/bashrc b/recipes/pandora-system/pandora-skel/bashrc
new file mode 100644 (file)
index 0000000..4be6368
--- /dev/null
@@ -0,0 +1,16 @@
+# ~/.bashrc: executed by bash(1) for non-login shells.
+
+export PS1='\h:\w\$ '
+umask 022
+
+# You may uncomment the following lines if you want `ls' to be colorized:
+# export LS_OPTIONS='--color=auto'
+# eval `dircolors`
+# alias ls='ls $LS_OPTIONS'
+# alias ll='ls $LS_OPTIONS -l'
+# alias l='ls $LS_OPTIONS -lA'
+#
+# Some more alias to avoid making mistakes:
+# alias rm='rm -i'
+# alias cp='cp -i'
+# alias mv='mv -i'
diff --git a/recipes/pandora-system/pandora-skel/mplayconfig b/recipes/pandora-system/pandora-skel/mplayconfig
new file mode 100644 (file)
index 0000000..7eed3e8
--- /dev/null
@@ -0,0 +1,8 @@
+# Write your default config options here!
+
+
+[gnome-mplayer]
+vo=xv
+msglevel=all=5
+ao=alsa
+vf=eq2
diff --git a/recipes/pandora-system/pandora-skel/profile b/recipes/pandora-system/pandora-skel/profile
new file mode 100644 (file)
index 0000000..979793e
--- /dev/null
@@ -0,0 +1,10 @@
+# ~/.profile: executed by Bourne-compatible login shells.
+
+if [ -f ~/.bashrc ]; then
+  . ~/.bashrc
+fi
+
+# path set by /etc/profile
+# export PATH
+
+mesg n