Commit af31e64c authored by Kirk Webb's avatar Kirk Webb

Add more actions for setting up cygwin services.

parent 880f7855
......@@ -7,4 +7,21 @@ runcmd C:\Software\Cygwin\setup.exe ;; -l C:\Software\Cygwin -s http://mirrors.x
log Cygwin Setup Complete.
log Setting up syslogd
runcyg syslogd-config ;; -y ;; 0
runcyg syslogd-config -y ;; 0
log Setting up sshd
mkdir C:\Cygwin\etc\sshkeys
runcyg ssh-host-config -y -u cyg_sshd -w cYgw1n$$h -c "" --privileged ;; 0
runcyg sed -e 's|^AuthorizedKeysFile.*$|AuthorizedKeysFile /sshkeys/%u/authorized_keys|' /etc/sshd_config > /etc/sshd_config.new ;; 0
runcyg mv -f /etc/sshd_config.new /etc/sshd_config ;; 0
mkdir C:\Cygwin\etc\ssh
runcyg ln -s /etc/ssh?* /etc/ssh ;; 0
log Setting up agetty
runcmd bcdedit.exe /ems off ;; 0
runcyg init-config -y ;; 0
runcyg sed -e 's/^.*agetty.*$/S0:2345:respawn:/usr/sbin/agetty -L ttyS0 115200 vt100/' /etc/inittab > /etc/inittab.new ;; 0
runcyg mv -f /etc/inittab.new /etc/inittab ;; 0
log Configuring wget
runcyg echo "check-certificate = off" >> /etc/wgetrc ;; 0
......@@ -205,10 +205,10 @@ Function runcyg_func($cmdarr) {
return $FAIL
}
# Push the bash args, command, and command args into place as
# Push the bash args, command + args into place as
# the new argument string and insert bash as the command to run.
# Pass this to runcmd_func.
$cmdarr[1] = [string]::join(" ", @($BASHARGS, $cmdarr[0..1]))
$cmdarr[1] = [string]::join(" ", @($BASHARGS, $cmdarr[0]))
$cmdarr[0] = $BASH
return runcmd_func($cmdarr)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment