Open patrickclery opened 2 weeks ago
Very nice, thanks!
One possible improvement (that I could do myself if you can't/won't, so let me know 😄):
It looks like $ARCH can be read from /etc/synoinfo.conf
:
source /etc/synoinfo.conf
echo Arch is $synobios
It would be cool to set it to that value as default, as I think a lot of users won't even know the platform of their NAS.
And one remark: the script uses /bin/sh
but uses Bash-specific syntax. At the moment, /bin/sh
is linked to /bin/bash
so that's okay, but I'm not sure if it will always be like that (on a lot of regular Linux distros it's not anymore). Perhaps it's better to use #!/bin/bash
instead?
Just a proposal :)
This started as script I wrote for myself to simplify the installation, but I figured it could merge with the usb-serial-drivers.sh.
It mainly started because I wanted to remove the code that silences the output of
insmod
, but I decided to add a whole script to do everything.Hope it offers some value :)
Usage:
Successful execution: