anchor.diff:          echo %_PREFIX% Creating %_ROOTDIR%
           mkdir %_ROOTDIR%
       )
  -    echo %_PREFIX% Fetching latest setup.exe
  +    echo %_PREFIX% Fetching latest setup.exe from cygwin.com
       wget --quiet -O %_ROOTDIR%\setup.exe http://cygwin.com/setup.exe
   goto :eof
   
  
positive.code: 
  goto :main
  
  :get_admin
      rem Ensure ADMIN privileges
      rem Adaptation of http://stackoverflow.com/q/4054937 and
      rem https://sites.google.com/site/eneerge/home/BatchGotAdmin
  
      rem Check for ADMIN privileges
      >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
      if "%ERRORLEVEL%" NEQ "0" (
          rem Get ADMIN privileges
          echo set UAC = CreateObject^("Shell.Application"^) > "%TEMP%\getadmin.vbs"
          echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%TEMP%\getadmin.vbs"
          echo %_PREFIX% Relaunching to get elevated privileges
          "%TEMP%\getadmin.vbs"
          del "%TEMP%\getadmin.vbs"
          exit /B
      )
  goto :eof
  
  
negative.code:     )
  goto :eof
  
  :config_syslogd
      sc query syslogd | findstr "service does not exist" > NUL:
      if %ERRORLEVEL% NEQ 0 goto :eof
  
      echo %_PREFIX% Configuring syslogd
      if not exist %_ROOTDIR%\bin\syslogd-config (
          echo %_PREFIX% ERROR: inetutils not installed
          goto :eof
      )
      %_ROOTDIR%\bin\bash --login -i -c "/usr/bin/syslogd-config"
  goto :eof
  
  :config_sshd
      sc query sshd | findstr "service does not exist" > NUL:
      if %ERRORLEVEL% NEQ 0 goto :eof
  
      echo %_PREFIX% Configuring sshd
      if not exist %_ROOTDIR%\bin\ssh-host-config (
          echo %_PREFIX% ERROR: opensshd not installed
          goto :eof
      )
      findstr /r "^sshd:" %_ROOTDIR%\etc\passwd
      if %ERRORLEVEL% EQL 0 (
          echo %_PREFIX% ERROR: sshd account found in /etc/passwd
          goto :eof
      )
      %_ROOTDIR%\bin\bash --login -i -c "/usr/bin/ssh-host-config"
  