summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2007-06-05 20:56:52 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2007-06-05 20:56:52 +0000
commitb804f098618c1c6ab22a8c58e4baf1e3d7293b68 (patch)
treec2da3d037deb41f31112c3682f7fa58594ce7c1f /sys-apps/setserial
parentversion bump (diff)
downloadgentoo-2-b804f098618c1c6ab22a8c58e4baf1e3d7293b68.tar.gz
gentoo-2-b804f098618c1c6ab22a8c58e4baf1e3d7293b68.tar.bz2
gentoo-2-b804f098618c1c6ab22a8c58e4baf1e3d7293b68.zip
Removed some bashisms.
(Portage version: 2.1.2.9)
Diffstat (limited to 'sys-apps/setserial')
-rw-r--r--sys-apps/setserial/ChangeLog5
-rwxr-xr-xsys-apps/setserial/files/serial12
2 files changed, 10 insertions, 7 deletions
diff --git a/sys-apps/setserial/ChangeLog b/sys-apps/setserial/ChangeLog
index cb62b4e142bf..0697b2d7cc3c 100644
--- a/sys-apps/setserial/ChangeLog
+++ b/sys-apps/setserial/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sys-apps/setserial
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/ChangeLog,v 1.12 2007/04/03 05:15:20 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/ChangeLog,v 1.13 2007/06/05 20:56:52 zzam Exp $
+
+ 05 Jun 2007; Matthias Schwarzott <zzam@gentoo.org> files/serial:
+ Removed some bashisms.
03 Apr 2007; Mike Frysinger <vapier@gentoo.org>
+files/setserial-2.17-build.patch, +files/setserial-2.17-headers.patch,
diff --git a/sys-apps/setserial/files/serial b/sys-apps/setserial/files/serial
index d1b35dbf1c18..b3ffdcf3aa69 100755
--- a/sys-apps/setserial/files/serial
+++ b/sys-apps/setserial/files/serial
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/files/serial,v 1.1 2005/02/21 15:53:03 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/files/serial,v 1.2 2007/06/05 20:56:52 zzam Exp $
depend() {
need localmount
@@ -9,24 +9,24 @@ depend() {
moduleinserted() {
local res=$(grep 'serial' /proc/modules | cut -f1 -d" ")
- [[ ${res} == "serial" ]] && return 1
+ [ "${res}" = "serial" ] && return 1
}
setports() {
#if serial module exists, and it's not inserted, insert it permanently
- if [[ -f /lib/modules/$(uname -r)/misc/serial.o ]] ; then
+ if [ -f "/lib/modules/$(uname -r)/misc/serial.o" ] ; then
moduleinserted
- if [[ $? -eq 0 ]] ; then
+ if [ $? -eq 0 ] ; then
/sbin/insmod serial 1>&2
fi
fi
- if [[ -e /etc/serial.conf ]] ; then
+ if [ -e /etc/serial.conf ] ; then
grep -v "^#\|^ \|^$" /etc/serial.conf | while read device args
do
ebegin "Setting $device to $args"
${SETSERIAL} -b $device $args 1>&2
- if [[ $? -gt 0 ]] ; then
+ if [ $? -gt 0 ] ; then
eend 1 "Error setting serial port $device $args"
no_errs=0
else