summaryrefslogtreecommitdiff
path: root/gpe-login/gpe-login-0.73/pre-session-ramdisk.patch
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-11-09 00:36:47 +0000
committerChris Larson <clarson@kergoth.com>2004-11-09 00:36:47 +0000
commitf96441b9faf769c9ecdd4d338b605ea3d0cc4010 (patch)
treeedb17ec2c4ea13c5acb1c7350957a249a820e28d /gpe-login/gpe-login-0.73/pre-session-ramdisk.patch
parentb6588aa6851fb220cedc387d21c51513ef8d67f4 (diff)
Disable bk EOLN_NATIVE conversions on all files in packages FILESPATHs, to prevent it screwing up patches.
BKrev: 4190111fA4MuVozAqwE7xOSL9fr-TA
Diffstat (limited to 'gpe-login/gpe-login-0.73/pre-session-ramdisk.patch')
-rw-r--r--gpe-login/gpe-login-0.73/pre-session-ramdisk.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/gpe-login/gpe-login-0.73/pre-session-ramdisk.patch b/gpe-login/gpe-login-0.73/pre-session-ramdisk.patch
index e69de29bb2..9018bbeb0e 100644
--- a/gpe-login/gpe-login-0.73/pre-session-ramdisk.patch
+++ b/gpe-login/gpe-login-0.73/pre-session-ramdisk.patch
@@ -0,0 +1,26 @@
+diff -ur gpe-login-0.73.orig/X11/gpe-login.pre-session gpe-login-0.73/X11/gpe-login.pre-session
+--- gpe-login-0.73.orig/X11/gpe-login.pre-session 2004-01-17 12:24:23.000000000 +0100
++++ gpe-login-0.73/X11/gpe-login.pre-session 2004-10-03 10:04:52.000000000 +0200
+@@ -22,9 +22,18 @@
+ chown $USER /dev/misc/buzzer
+ fi
+
+-mkdir -p /mnt/ramfs/home/$USER
+-chown $USER /mnt/ramfs/home/$USER
++# check for ramdisk location
++if [ -d /mnt/ramfs ]; then
++# old location as used in familiar <= 0.7.2
++RAMDISK="/mnt/ramfs"
++else
++# default to new style location
++RAMDISK="/mnt/ram"
++fi
++
++mkdir -p $RAMDISK/home/$USER
++chown $USER $RAMDISK/home/$USER
+
+ # this location MUST be consistent with HOME_VOLATILE in /etc/X11/Xsession
+-ln -s /mnt/ramfs/home/$USER /home/$USER/ramdisk
+-ln -s /home/$USER/ramdisk/.xsession-errors /home/$USER/.xsession-errors
++ln -sf $RAMDISK/home/$USER /home/$USER/ramdisk
++ln -sf /home/$USER/ramdisk/.xsession-errors /home/$USER/.xsession-errors