diff options
author | Matthias Hentges <oe@hentges.net> | 2006-07-03 02:37:00 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-07-03 02:37:00 +0000 |
commit | 602af584cc98ccfa10ca30cd850ec0ac92fe8ac0 (patch) | |
tree | db7a77a46c84ff3792973105f3745000464158b0 /packages/fluxbox/fluxbox-gpe/fluxbox-gpe-session | |
parent | 085c69220f3ab2f01fb840407815e56523544c8f (diff) |
fluxbox: Add mult-machine support for geometry defaults
Diffstat (limited to 'packages/fluxbox/fluxbox-gpe/fluxbox-gpe-session')
-rw-r--r-- | packages/fluxbox/fluxbox-gpe/fluxbox-gpe-session | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/packages/fluxbox/fluxbox-gpe/fluxbox-gpe-session b/packages/fluxbox/fluxbox-gpe/fluxbox-gpe-session index ca0afea35d..f6e03ede7e 100644 --- a/packages/fluxbox/fluxbox-gpe/fluxbox-gpe-session +++ b/packages/fluxbox/fluxbox-gpe/fluxbox-gpe-session @@ -4,10 +4,20 @@ # # Install "apps" file with defaults for GPE usage -if test -e /usr/share/fluxbox/apps.gpe + +MACHINE="`cat /proc/cpuinfo | sed -n "/^Hardware/s/.*\:\ \(.*\)/\1/p"`" + +case $MACHINE in +*Akita | *Spitz | *Borzoi | *Terrier) + APPS="apps.gpe.akita";; +*) + APPS="apps.gpe.default";; +esac + +if test -e /usr/share/fluxbox/$APPS then mkdir -p $HOME/.fluxbox - test -e $HOME/.fluxbox/apps || cp /usr/share/fluxbox/apps.gpe $HOME/.fluxbox/apps + test -e $HOME/.fluxbox/apps || cp /usr/share/fluxbox/$APPS $HOME/.fluxbox/apps fi |