summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-01-15 08:42:34 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-01-15 08:42:34 +0000
commit2f82e74edb12fb9122574e036413803f9c50caad (patch)
tree15450190a57ac35ef2ecf81406166045afc6af99 /sys-apps/setserial/files
parentAdd pkgconfig dep, bug #205757; use latest automake (diff)
downloadgentoo-2-2f82e74edb12fb9122574e036413803f9c50caad.tar.gz
gentoo-2-2f82e74edb12fb9122574e036413803f9c50caad.tar.bz2
gentoo-2-2f82e74edb12fb9122574e036413803f9c50caad.zip
Implement stty keyword per bug #103423.
(Portage version: 2.1.4)
Diffstat (limited to 'sys-apps/setserial/files')
-rw-r--r--sys-apps/setserial/files/digest-setserial-2.17-r43
-rwxr-xr-xsys-apps/setserial/files/serial-2.17-r435
2 files changed, 38 insertions, 0 deletions
diff --git a/sys-apps/setserial/files/digest-setserial-2.17-r4 b/sys-apps/setserial/files/digest-setserial-2.17-r4
new file mode 100644
index 000000000000..065ea13c3be6
--- /dev/null
+++ b/sys-apps/setserial/files/digest-setserial-2.17-r4
@@ -0,0 +1,3 @@
+MD5 c4867d72c41564318e0107745eb7a0f2 setserial-2.17.tar.gz 52437
+RMD160 91b87e203f9469dc9c5586652a5231a10cf53cc8 setserial-2.17.tar.gz 52437
+SHA256 7e4487d320ac31558563424189435d396ddf77953bb23111a17a3d1487b5794a setserial-2.17.tar.gz 52437
diff --git a/sys-apps/setserial/files/serial-2.17-r4 b/sys-apps/setserial/files/serial-2.17-r4
new file mode 100755
index 000000000000..faa29d15bf62
--- /dev/null
+++ b/sys-apps/setserial/files/serial-2.17-r4
@@ -0,0 +1,35 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/files/serial-2.17-r4,v 1.1 2008/01/15 08:42:34 robbat2 Exp $
+
+depend() {
+ need localmount
+}
+
+start() {
+ [ ! -e /etc/serial.conf ] && return 0
+
+ # load the module if need be
+ if [ -e /proc/modules ] ; then
+ modprobe -q serial
+ fi
+
+ grep -v "^#\|^ \|^$|^stty" /etc/serial.conf | while read device args
+ do
+ ebegin "Setting ${device} to $args"
+ setserial -b ${device} ${args}
+ eend $?
+ done
+ grep "^stty" /etc/serial.conf | while read x device args
+ do
+ ebegin "Setting (stty) ${device} to $args"
+ stty -F ${device} ${args}
+ eend $?
+ done
+
+ return 0
+}
+
+
+# vim:ts=4