mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
353316028c
- improve startup script, so that it works right OOB and bump PORTREVISION; - make it respecting global CFLAGS, while I'm here. Prompted by: IBM ThinkPad 600E
27 lines
637 B
Bash
27 lines
637 B
Bash
#!/bin/sh
|
|
MWAVEM_NAME="mwavem"
|
|
MWAVEM_PATH="/usr/local/bin/"
|
|
#
|
|
# -- START --
|
|
# $Id: init.freebsd.sh,v 1.1 2000/10/03 16:23:21 papowell Exp papowell $
|
|
# This file can be installed in /usr/local/etc/rc.d
|
|
# as mwavem.sh
|
|
# Freebsd 4.x will run all files in this directory
|
|
# with the suffix .sh as shell scripts
|
|
#
|
|
|
|
case "$1" in
|
|
restart )
|
|
$0 stop
|
|
sleep 2
|
|
$0 start
|
|
;;
|
|
stop )
|
|
;;
|
|
start )
|
|
echo -n ' internal modem'
|
|
kldstat -n mwave 2>/dev/null >/dev/null || kldload /usr/local/share/mwavem/mwave.ko
|
|
${MWAVEM_PATH}${MWAVEM_NAME} > /dev/null &
|
|
;;
|
|
esac
|