usrMerge project - move files from toplevel to /usr OBS-URL: https://build.opensuse.org/request/show/105711 OBS-URL: https://build.opensuse.org/package/show/Base:System/setserial?expand=0&rev=11
27 lines
685 B
Diff
27 lines
685 B
Diff
--- rc.serial.orig
|
|
+++ rc.serial
|
|
@@ -26,12 +26,21 @@ DRIVER_NAME=serial
|
|
MODULE_REGEXP="serial\b"
|
|
|
|
ALLDEVS="/dev/ttyS?"
|
|
-if /bin/ls /dev/ttyS?? >& /dev/null ; then
|
|
+if test -x /usr/bin/ls ; then
|
|
+ LS=/usr/bin/ls
|
|
+elif test -x /bin/ls ; then
|
|
+ LS=/bin/ls
|
|
+fi
|
|
+if $LS /dev/ttyS?? >& /dev/null ; then
|
|
ALLDEVS="$ALLDEVS /dev/ttyS??"
|
|
fi
|
|
|
|
SETSERIAL=""
|
|
-if test -x /bin/setserial ; then
|
|
+if test -x /usr/bin/setserial ; then
|
|
+ SETSERIAL=/usr/bin/setserial
|
|
+elif test -x /usr/sbin/setserial ; then
|
|
+ SETSERIAL=/usr/sbin/setserial
|
|
+elif test -x /bin/setserial ; then
|
|
SETSERIAL=/bin/setserial
|
|
elif test -x /sbin/setserial ; then
|
|
SETSERIAL=/sbin/setserial
|