From 2cb8bf746878e61c60e05a7ae118bfb79cf470cb Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Thu, 30 Jun 2005 20:42:56 +0000 Subject: opie-taskbar: /etc/init.d/opie: copy $OPIEDIR/etc/skel/*.conf into $HOME/Settings/ on first start --- packages/opie-taskbar/opie-taskbar/opie | 17 ++++++++--------- 1 file 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/ -- cgit v1.2.3