summaryrefslogtreecommitdiff
path: root/net/generic-nqs/scripts/create-nqs-rc.sh
blob: 6087fae4b88f36668481c4ff5d49a905f6f1c16d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

me=`basename $0`

if [ $# -lt 3 ]; then
	echo usage: $me configfile nqs.sh rcdir >&2
	exit 1
fi

root=`grep NQS_ROOTDIR $1 | cut -f2 -d\"`
sed -e"s#XXXX#$root#" $2 > $3
chmod 755 $3
echo ""
echo "created $3 startup file"
echo ""