summaryrefslogtreecommitdiffstats
path: root/projects/scII-bmwm/etc/init.d/serial
blob: b7d4af8b1aa65f1d8001f0f7c2db9667affbcc09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
#
# /etc/init.d/serial
#
# Configuration for BMW
#
# 2004/02/27 Robert Schwebel <r.schwebel@pengutronix.de>
#

case $1 in 

	start)
		echo "loading serial drivers:"
		/sbin/modprobe serial_core
		/sbin/modprobe 8250
		/sbin/modprobe 8250_pci
		echo "done."
		;;

	stop)
		echo "removing serial drivers:"
		/sbin/rmmod 8250_pci
		/sbin/rmmod 8250
		/sbin/rmmod serial_core
		echo "done."
		;;

	*)
		echo "usage: $0 [start|stop]"
		;;

esac