diff --git a/audio-drivers/nas/init.d/nasd b/audio-drivers/nas/init.d/nasd
new file mode 100755
index 0000000..004431c
--- /dev/null
+++ b/audio-drivers/nas/init.d/nasd
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+PROGRAM="/usr/X11R6/bin/nasd"
+RUNLEVEL=3
+NEEDS="+remote_fs alsa"
+
+. /etc/sysconfig/nasd
+
+[ ! -z ${NAS_PORT_OFFSET} ] && ARGS=":${NAS_PORT_OFFSET}"
+[ "${NAS_LOCAL_ONLY}" == "yes" ] && ARGS="${ARGS} -local"
+ARGS="${ARGS} -b"
+
+. /etc/init.d/smgl_init
+
diff --git a/audio-drivers/nas/init.d/nasd.conf
b/audio-drivers/nas/init.d/nasd.conf
new file mode 100644
index 0000000..5f0276a
--- /dev/null
+++ b/audio-drivers/nas/init.d/nasd.conf
@@ -0,0 +1,23 @@
+# this file configures the settings for the nasd init script
+
+## Server options:
+
+#NAS_PORT_OFFSET specifies which port to use. The default port is 8000,
+#so setting this to 1 would mean nasd will use port 8001.
+NAS_PORT_OFFSET=1
+
+#NAS_LOCAL_ONLY makes the nasd server only respond to audio streams from
+#the local machine (localhost) and ignore network connections.
+NAS_LOCAL_ONLY=yes
+
+## Client options
+
+#NAS_AUDIOSERVER defines the hostname or ip-address on which the server
+#is listening. localhost by default.
+NAS_AUDIOSERVER=localhost
+
+#NAS_PORT specifies the port on which the server is listening.
+#it's 8000+n where n is the offset specified on the server.
+#the default is 8000
+NAS_PORT=8001
+
diff --git a/audio-drivers/nas/profile.d/nasd.sh
b/audio-drivers/nas/profile.d/nasd.sh
new file mode 100644
index 0000000..a2ed4dc
--- /dev/null
+++ b/audio-drivers/nas/profile.d/nasd.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+# First check if this variable is already set
+# then if not set, check it (maybe), then set it
+
+if [ -e /etc/sysconfig/nasd ] ; then
+ . /etc/sysconfig/nasd
+ if [ -z "$AUDIOSERVER" ] ; then
+ AUDIOSERVER="tcp/$NAS_AUDIOSERVER:$NAS_PORT"
+ fi &&
+ export AUDIOSERVER
+fi
[SM-Commit] GIT changes to master grimoire by Arjan Bouter (095e935d8d401a70977da8aacba649e1b291eca0),
Arjan Bouter, 06/20/2006