mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
system/lxdm: Fix localization detection.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
c6b4e9d94c
commit
a750e15c85
1 changed files with 9 additions and 1 deletions
|
@ -25,7 +25,7 @@
|
|||
|
||||
PRGNAM=lxdm
|
||||
VERSION=${VERSION:-0.5.3}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -120,6 +120,14 @@ for file in LoginReady PostLogin PostLogout PreLogin PreReboot PreShutdown lxdm.
|
|||
mv $PKG/etc/lxdm/$file $PKG/etc/lxdm/$file.new ;
|
||||
done
|
||||
|
||||
# Look for language defaults were we usually store 'em
|
||||
cat << "EOF" > $PKG/usr/sbin/lxdm
|
||||
#!/bin/sh
|
||||
. /etc/profile.d/lang.sh
|
||||
export LANG
|
||||
exec /usr/sbin/lxdm-binary $*
|
||||
EOF
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
|
|
Loading…
Reference in a new issue