Commit 92d5f796 authored by David Spencer's avatar David Spencer

slacknetsetup: Fixups + build bump.

parent a3ff2b99
......@@ -11,5 +11,19 @@ config() {
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
config etc/rc.d/rc.inet1.new
config etc/rc.d/rc.inet1.conf.new
config etc/rc.d/rc.wireless.conf.new
# This is a kludge, but it's because there's no --reference option
# on busybox's 'chmod':
if [ -e etc/rc.d/rc.wireless ]; then
if [ -x etc/rc.d/rc.wireless ]; then
chmod 755 etc/rc.d/rc.wireless.new
else
chmod 644 etc/rc.d/rc.wireless.new
fi
fi
# Then config() it:
config etc/rc.d/rc.wireless.new
......@@ -2,13 +2,13 @@
# Slackware build script for slacknetsetup
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=slacknetsetup
ARCH=noarch
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_uu}
CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-$PKGNAM
OUTPUT=${OUTPUT:-/tmp}
......@@ -24,7 +24,7 @@ else
cd $PKGNAM
fi
VERSION=$(git rev-parse --short HEAD)
VERSION=${VERSION:-$(git rev-parse --short HEAD)}
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
......@@ -41,7 +41,7 @@ mkdir -p $TMP $PKG $OUTPUT
mkdir -p $PKG/etc/rc.d
( cd $PKG/etc/rc.d
for file in rc.inet1.conf rc.inet1 ; do
for file in rc.inet1.conf rc.inet1 rc.wireless rc.wireless.conf ; do
cp -a $CWD/$PKGNAM/$file ${file}.new
done
chown root:root *
......@@ -49,6 +49,9 @@ mkdir -p $PKG/etc/rc.d
chmod 600 rc.inet1.conf.new
)
mkdir -p $PKG/lib/modprobe.d
cp -a modprobe-ipv6.conf $PKG/lib/modprobe.d/ipv6.conf
mkdir -p $PKG/sbin
cp -a netconfig $PKG/sbin/netconfig
chown root:root $PKG/sbin/netconfig
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment