File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 text = ''
2828 #!/bin/sh
2929 if ! pgrep -x "sshd" > /dev/null; then
30- ${ pkgs . openssh } /bin/sshd -f ${ config . home . homeDirectory } /.ssh/sshd_config
30+ SSHD_BIN="/data/data/com.termux/files/usr/bin/sshd"
31+ if [ ! -x "$SSHD_BIN" ]; then
32+ SSHD_BIN="${ pkgs . openssh } /bin/sshd"
33+ fi
34+ "$SSHD_BIN" -f ${ config . home . homeDirectory } /.ssh/sshd_config
3135 fi
3236 '' ;
3337 executable = true ;
Original file line number Diff line number Diff line change 2727 programs . zsh . initExtra = ''
2828 export PROMPT="%F{yellow}%n%f@%F{green}${ hostName } %f:%F{blue}%~%f%# "
2929 if ! pgrep -x "sshd" > /dev/null; then
30- ${ pkgs . openssh } /bin/sshd -f ${ config . home . homeDirectory } /.ssh/sshd_config
30+ SSHD_BIN="/data/data/com.termux/files/usr/bin/sshd"
31+ if [ ! -x "$SSHD_BIN" ]; then
32+ SSHD_BIN="${ pkgs . openssh } /bin/sshd"
33+ fi
34+ "$SSHD_BIN" -f ${ config . home . homeDirectory } /.ssh/sshd_config
3135 fi
3236 '' ;
3337
3438 programs . bash . initExtra = ''
3539 export PS1="\[\033[01;33m\]\u\[\033[00m\]@\[\033[01;32m\]${ hostName } \[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ "
3640 if ! pgrep -x "sshd" > /dev/null; then
37- ${ pkgs . openssh } /bin/sshd -f ${ config . home . homeDirectory } /.ssh/sshd_config
41+ SSHD_BIN="/data/data/com.termux/files/usr/bin/sshd"
42+ if [ ! -x "$SSHD_BIN" ]; then
43+ SSHD_BIN="${ pkgs . openssh } /bin/sshd"
44+ fi
45+ "$SSHD_BIN" -f ${ config . home . homeDirectory } /.ssh/sshd_config
3846 fi
3947 '' ;
4048}
Original file line number Diff line number Diff line change 2727 programs . zsh . initExtra = ''
2828 export PROMPT="%F{yellow}%n%f@%F{green}${ hostName } %f:%F{blue}%~%f%# "
2929 if ! pgrep -x "sshd" > /dev/null; then
30- ${ pkgs . openssh } /bin/sshd -f ${ config . home . homeDirectory } /.ssh/sshd_config
30+ SSHD_BIN="/data/data/com.termux/files/usr/bin/sshd"
31+ if [ ! -x "$SSHD_BIN" ]; then
32+ SSHD_BIN="${ pkgs . openssh } /bin/sshd"
33+ fi
34+ "$SSHD_BIN" -f ${ config . home . homeDirectory } /.ssh/sshd_config
3135 fi
3236 '' ;
3337
3438 programs . bash . initExtra = ''
3539 export PS1="\[\033[01;33m\]\u\[\033[00m\]@\[\033[01;32m\]${ hostName } \[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ "
3640 if ! pgrep -x "sshd" > /dev/null; then
37- ${ pkgs . openssh } /bin/sshd -f ${ config . home . homeDirectory } /.ssh/sshd_config
41+ SSHD_BIN="/data/data/com.termux/files/usr/bin/sshd"
42+ if [ ! -x "$SSHD_BIN" ]; then
43+ SSHD_BIN="${ pkgs . openssh } /bin/sshd"
44+ fi
45+ "$SSHD_BIN" -f ${ config . home . homeDirectory } /.ssh/sshd_config
3846 fi
3947 '' ;
4048}
You can’t perform that action at this time.
0 commit comments