fire1ce / UDM-Persistent-SSH-Keys

UDMP Persistence SSH Keys
https://3os.org
22 stars 8 forks source link

Possible documentation typo? #2

Closed hunterdrayman closed 2 years ago

hunterdrayman commented 2 years ago

Thanks for this useful code. Much appreciated.

I just successfully installed on my UDM-Pro but discovered I needed to use sh rather than bash on my machine. i.e.

curl https://raw.githubusercontent.com/fire1ce/UDMP-Persistence-SSH-Keys/main/install.sh | sh

instead of

curl https://raw.githubusercontent.com/fire1ce/UDMP-Persistence-SSH-Keys/main/install.sh | bash

fire1ce commented 2 years ago

would you mind runing

which bash

on your udm pro. mine has bash outof the box.

hunterdrayman commented 2 years ago

Hi,

I did that at the time (and also searched through $PATH) and there was no bash to be found. However, I subsequently installed wireguard as described here:

https://github.com/tusc/wireguard-kmod#install

and noted that this project installed a few extras, including bash. Had I done these two things in reverse order bash would have already been present. To answer your question, though:

which bash

/bin/bash

ls -al /bin/bash

lrwxrwxrwx 1 root root 32 Apr 23 08:43 /bin/bash -> /mnt/data/wireguard/usr/bin/bash

On Sat, Apr 23, 2022 at 12:52 PM Stas Yakobov @.***> wrote:

would you mind runing which bash

on your udm pro. mine has bash outof the box.

— Reply to this email directly, view it on GitHub https://github.com/fire1ce/UDMP-Persistence-SSH-Keys/issues/2#issuecomment-1107458989, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARIIIZYZLTSNKLPPPMR53MDVGPQAXANCNFSM5UEJ7PTQ . You are receiving this because you authored the thread.Message ID: @.***>

fire1ce commented 2 years ago

@hunterdrayman thanks for the info. Had wireguard installed before i made this script. ill change the install to sh