diff options
-rwxr-xr-x | liveinst/liveinst.xinit | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/liveinst/liveinst.xinit b/liveinst/liveinst.xinit index d41d3e61e..41f636d16 100755 --- a/liveinst/liveinst.xinit +++ b/liveinst/liveinst.xinit @@ -2,15 +2,13 @@ # Set up a launcher on the desktop for the live installer if we're on # a live CD -if [ `grep -c Geode /proc/cpuinfo` -ne 0 ]; then - exit 0 -fi - -if [ -b /dev/live-osimg ]; then +# don't run on geode (olpc) +if [ `grep -c Geode /proc/cpuinfo` -eq 0 ]; then + if [ -b /dev/live-osimg ]; then test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs cp /usr/share/applications/liveinst.desktop "${XDG_DESKTOP_DIR:-$HOME/Desktop}" -elif [ -f /.livecd-configured ]; then # FIXME: old way... this should go away + elif [ -f /.livecd-configured ]; then # FIXME: old way... this should go away test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs cp /usr/share/applications/liveinst.desktop "${XDG_DESKTOP_DIR:-$HOME/Desktop}" + fi fi - |