diff options
author | Michael Lauer <mickey@vanille-media.de> | 2005-06-30 20:42:56 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-06-30 20:42:56 +0000 |
commit | 2cb8bf746878e61c60e05a7ae118bfb79cf470cb (patch) | |
tree | d8c0c293306963c9fb85f811bc383aa02bb2682b /packages/opie-taskbar | |
parent | 30ea3ef5b56faa87fea9e084a938d7c73773dd41 (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-x | packages/opie-taskbar/opie-taskbar/opie | 17 |
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/ |