network/xnetload: Fixed (Use relative path in doinst.sh)

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
dsomero 2012-09-30 00:53:37 -04:00 committed by Robby Workman
parent 95e8234144
commit 42efab8543
2 changed files with 2 additions and 6 deletions

View file

@ -1,5 +1,3 @@
#!/bin/sh
config() { config() {
NEW="$1" NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)" OLD="$(dirname $NEW)/$(basename $NEW .new)"
@ -13,4 +11,4 @@ config() {
# Otherwise, we leave the .new copy for the admin to consider... # Otherwise, we leave the .new copy for the admin to consider...
} }
config /etc/X11/app-defaults/XNetload.new config etc/X11/app-defaults/XNetload.new

View file

@ -8,15 +8,13 @@
PRGNAM=xnetload PRGNAM=xnetload
VERSION=${VERSION:-1.11.3} VERSION=${VERSION:-1.11.3}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i486 ;; i?86) ARCH=i486 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac
fi fi