Displaying 2 results from an estimated 2 matches for "_nt2003".
2003 Nov 05
0
[PATCH] contrip/cygwin: Reworking the installation support
...@@ do
done
# Check if running on NT
-_sys="`uname -a`"
-_nt=`expr "$_sys" : "CYGWIN_NT"`
+_sys="`uname`"
+_nt=`expr "${_sys}" : "CYGWIN_NT"`
+# If running on NT, check if running under 2003 Server or later
+if [ ${_nt} -gt 0 ]
+then
+ _nt2003=`uname | awk -F- '{print ( $2 >= 5.2 ) ? 1 : 0;}'`
+fi
# Check for running ssh/sshd processes first. Refuse to do anything while
# some ssh processes are still running
@@ -137,87 +153,33 @@ fi
# Create /var/log and /var/log/lastlog if not already existing
-if [ -f /var/log ]
+if...
2006 Jan 09
0
[PATCH] Add service dependency to network
...retrieving revision 1.17
diff -p -u -r1.17 ssh-host-config
--- contrib/cygwin/ssh-host-config 9 May 2005 13:48:17 -0000 1.17
+++ contrib/cygwin/ssh-host-config 9 Jan 2006 12:45:45 -0000
@@ -551,14 +551,14 @@ then
[ -z "${_cygwin}" ] && _cygwin="ntsec"
if [ $_nt2003 -gt 0 -a "${sshd_server_in_sam}" = "yes" ]
then
- if cygrunsrv -I sshd -d "CYGWIN sshd" -p /usr/sbin/sshd -a -D -u sshd_server -w "${_password}" -e "CYGWIN=${_cygwin}"
+ if cygrunsrv -I sshd -d "CYGWIN sshd" -p /usr/sbin/sshd -a -D...