1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/sh # source application-specific settings [ -f /etc/conf.d/nmead ] && . /etc/conf.d/nmead if [ ! -z "$NMEAD_BAUD" ]; then NMEAD_OPTIONS+=" -b $NMEAD_BAUD" fi if [ ! -z "$NMEAD_TTY" ]; then NMEAD_OPTIONS+=" -i $NMEAD_TTY" fi if [ ! -z "$NMEAD_PORT" ]; then NMEAD_OPTIONS+=" -p $NMEAD_PORT" fi nmead $NMEAD_OPTIONS