| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: rc.subr,v 1.12 2015/05/10 19:20:09 bsiegert Exp $ | | 1 | # $NetBSD: rc.subr,v 1.13 2016/10/17 01:11:30 dholland Exp $ |
2 | # | | 2 | # |
3 | # Copyright (c) 1997-2002 The NetBSD Foundation, Inc. | | 3 | # Copyright (c) 1997-2002 The NetBSD Foundation, Inc. |
4 | # All rights reserved. | | 4 | # All rights reserved. |
5 | # | | 5 | # |
6 | # This code is derived from software contributed to The NetBSD Foundation | | 6 | # This code is derived from software contributed to The NetBSD Foundation |
7 | # by Luke Mewburn. | | 7 | # by Luke Mewburn. |
8 | # | | 8 | # |
9 | # Redistribution and use in source and binary forms, with or without | | 9 | # Redistribution and use in source and binary forms, with or without |
10 | # modification, are permitted provided that the following conditions | | 10 | # modification, are permitted provided that the following conditions |
11 | # are met: | | 11 | # are met: |
12 | # 1. Redistributions of source code must retain the above copyright | | 12 | # 1. Redistributions of source code must retain the above copyright |
13 | # notice, this list of conditions and the following disclaimer. | | 13 | # notice, this list of conditions and the following disclaimer. |
14 | # 2. Redistributions in binary form must reproduce the above copyright | | 14 | # 2. Redistributions in binary form must reproduce the above copyright |
| @@ -97,26 +97,47 @@ case $_osname in | | | @@ -97,26 +97,47 @@ case $_osname in |
97 | if [ "$1" = "-n" ]; then | | 97 | if [ "$1" = "-n" ]; then |
98 | shift; echo "$@\c" | | 98 | shift; echo "$@\c" |
99 | else | | 99 | else |
100 | echo "$@" | | 100 | echo "$@" |
101 | fi | | 101 | fi |
102 | } | | 102 | } |
103 | _RCCMD_chown="/usr/bin/chown" | | 103 | _RCCMD_chown="/usr/bin/chown" |
104 | _RCCMD_ci="/usr/contrib/bin/ci" | | 104 | _RCCMD_ci="/usr/contrib/bin/ci" |
105 | _RCCMD_co="/usr/contrib/bin/co" | | 105 | _RCCMD_co="/usr/contrib/bin/co" |
106 | _RCCMD_echo="bsd_echo" | | 106 | _RCCMD_echo="bsd_echo" |
107 | _RCCMD_rcs="/usr/contrib/bin/rcs" | | 107 | _RCCMD_rcs="/usr/contrib/bin/rcs" |
108 | _RCARG_psformat="-wwo pid,comm" | | 108 | _RCARG_psformat="-wwo pid,comm" |
109 | ;; | | 109 | ;; |
| | | 110 | IRIX*) |
| | | 111 | _RCCMD_chown="/sbin/chown" |
| | | 112 | _RCCMD_ci="/usr/sbin/ci" |
| | | 113 | _RCCMD_co="/usr/sbin/co" |
| | | 114 | _RCCMD_cp="/sbin/cp" |
| | | 115 | _RCCMD_kill="kill" # use sh builtin |
| | | 116 | # _RCCMD_logger="/usr/bin/logger" # not in IRIX |
| | | 117 | _RCCMD_mv="/sbin/mv" |
| | | 118 | _RCCMD_nice="/sbin/nice" |
| | | 119 | _RCCMD_ps="/sbin/ps" |
| | | 120 | _RCCMD_rcs="/usr/sbin/rcs" |
| | | 121 | _RCCMD_rm="/sbin/rm" |
| | | 122 | _RCCMD_sh="/sbin/sh" |
| | | 123 | _RCCMD_su="/sbin/su" |
| | | 124 | # _RCCMD_systrace="/bin/systrace" # not in IRIX |
| | | 125 | _RCCMD_whoami="/bin/whoami" |
| | | 126 | _RCARG_psformat="-o pid,comm=12345678901234567890" |
| | | 127 | # widen column to try to get full command-name |
| | | 128 | _RCARG_ps="-ef" |
| | | 129 | _RCARG_su="" |
| | | 130 | ;; |
110 | Linux) | | 131 | Linux) |
111 | _RCCMD_chown="/bin/chown" | | 132 | _RCCMD_chown="/bin/chown" |
112 | # _RCCMD_ci="/usr/bin/ci" # not in Slackware 8.1 | | 133 | # _RCCMD_ci="/usr/bin/ci" # not in Slackware 8.1 |
113 | # _RCCMD_co="/usr/bin/co" # not in Slackware 8.1 | | 134 | # _RCCMD_co="/usr/bin/co" # not in Slackware 8.1 |
114 | _RCCMD_nice=$(which nice) | | 135 | _RCCMD_nice=$(which nice) |
115 | # _RCCMD_rcs="/usr/bin/rcs" # not in Slackware 8.1 | | 136 | # _RCCMD_rcs="/usr/bin/rcs" # not in Slackware 8.1 |
116 | # _RCCMD_systrace="/bin/systrace" # not in Slackware 8.1 | | 137 | # _RCCMD_systrace="/bin/systrace" # not in Slackware 8.1 |
117 | _RCARG_ps="ax" | | 138 | _RCARG_ps="ax" |
118 | if [ -e /etc/redhat-release ]; then | | 139 | if [ -e /etc/redhat-release ]; then |
119 | _RCCMD_su="/bin/su" # for CentOS/RHEL | | 140 | _RCCMD_su="/bin/su" # for CentOS/RHEL |
120 | fi | | 141 | fi |
121 | ;; | | 142 | ;; |
122 | QNX) | | 143 | QNX) |