summaryrefslogtreecommitdiff
path: root/packages/opie-taskbar
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2005-06-30 20:42:56 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 20:42:56 +0000
commit2cb8bf746878e61c60e05a7ae118bfb79cf470cb (patch)
treed8c0c293306963c9fb85f811bc383aa02bb2682b /packages/opie-taskbar
parent30ea3ef5b56faa87fea9e084a938d7c73773dd41 (diff)
opie-taskbar: /etc/init.d/opie: copy $OPIEDIR/etc/skel/*.conf into $HOME/Settings/ on first start
Diffstat (limited to 'packages/opie-taskbar')
-rwxr-xr-xpackages/opie-taskbar/opie-taskbar/opie17
1 files changed, 8 insertions, 9 deletions
diff --git a/packages/opie-taskbar/opie-taskbar/opie b/packages/opie-taskbar/opie-taskbar/opie
index 3a387186a2..2267ede9fa 100755
--- a/packages/opie-taskbar/opie-taskbar/opie
+++ b/packages/opie-taskbar/opie-taskbar/opie
@@ -17,15 +17,14 @@ fi
. /etc/profile
-if [ ! -e "$HOME/Settings/qpe.conf" ] ; then
- echo "Copying default qpe.conf into $HOME/Settings/"
- mkdir -p $HOME/Settings/
- cat $OPIEDIR/etc/skel/qpe.conf >$HOME/Settings/qpe.conf
-fi
-
-if [ ! -e "$HOME/Settings/locale.conf" -a -e "$OPIEDIR/etc/skel/locale.conf" ] ; then
- cat $OPIEDIR/etc/skel/locale.conf >$HOME/Settings/locale.conf
-fi
+for conf in $OPIEDIR/etc/skel/*.conf; do
+ conf_basename=`basename $conf`
+ if [ ! -e "$HOME/Settings/$conf_basename" ] ; then
+ echo "Copying default $conf_basename into $HOME/Settings/"
+ mkdir -p $HOME/Settings/
+ cat $conf >$HOME/Settings/$conf_basename
+ fi
+done
if [ ! -e "$HOME/systeminfo/linkver" ] ; then
mkdir -p $HOME/systeminfo/