Changeset 958
- Timestamp:
- Jan 26, 2008 1:29:06 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/runit/servicedirs/atftpd/run (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/runit/servicedirs/atftpd/run
r957 r958 2 2 exec 2>&1 3 3 4 OPTIONS="--daemon --no-fork "4 OPTIONS="--daemon --no-fork --logfile /dev/stdout --tftpd-timeout 30 --retry-timeout 5 --no-tsize --no-blksize --no-multicast --maxthread 1000 --verbose=7" 5 5 export OPTIONS 6 6 … … 8 8 # check that root directory exists 9 9 if [ ! -d "$ROOT" ] ; then 10 echo "ROOT directory '$ROOT' does not exist." 10 11 exit 1 11 12 fi 12 # check if a n address is specified13 # check if address is specified 13 14 if [ "$ADDRESS" ] ; then 14 15 OPTIONS="$OPTIONS --bind-address $ADDRESS" 15 16 fi 17 # check if port is specified 16 18 if [ "$PORT" ] ; then 17 19 OPTIONS="$OPTIONS --port $PORT" 18 20 fi 21 # check if user is specified 22 if [ "$USER" ] ; then 23 OPTIONS="$OPTIONS --user $USER" 24 fi 25 # check if group is specified 26 if [ "$GROUP" ] ; then 27 OPTIONS="$OPTIONS --group $GROUP" 28 fi 29 echo "in.tftpd $OPTIONS $ROOT" 19 30 exec in.tftpd $OPTIONS "$ROOT" 20 31 }
Note: See TracChangeset
for help on using the changeset viewer.

