From: David-John Willis Date: Tue, 1 Dec 2009 18:20:06 +0000 (+0000) Subject: pandora-skel: Update /etc/skel defaults. X-Git-Tag: Release-2010-05/1~146 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=commitdiff_plain;h=88dce90e8f79f12c10c0e423555e73a8b9894ab7 pandora-skel: Update /etc/skel defaults. --- diff --git a/recipes/pandora-system/pandora-skel.bb b/recipes/pandora-system/pandora-skel.bb index c647f2d..9784460 100644 --- a/recipes/pandora-system/pandora-skel.bb +++ b/recipes/pandora-system/pandora-skel.bb @@ -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 index 0000000..4be6368 --- /dev/null +++ b/recipes/pandora-system/pandora-skel/bashrc @@ -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 index 0000000..7eed3e8 --- /dev/null +++ b/recipes/pandora-system/pandora-skel/mplayconfig @@ -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 index 0000000..979793e --- /dev/null +++ b/recipes/pandora-system/pandora-skel/profile @@ -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