This commit is contained in:
Ing 2023-06-23 16:29:10 +08:00
parent 438b344f3d
commit e16b4f464e
6 changed files with 48 additions and 48 deletions

View File

@ -30,4 +30,5 @@ case "$1" in
*) *)
echo "Usage: $0 {start|stop|restart|reload|force-reload}" echo "Usage: $0 {start|stop|restart|reload|force-reload}"
exit 1 exit 1
;;
esac esac

View File

@ -22,12 +22,11 @@ export DSMROOT_PATH="/mnt/dsmroot"
export PATH="${PATH}:/opt/arpl" export PATH="${PATH}:/opt/arpl"
if [ -f ${BOOTLOADER_PATH}/.locale ]; then if [ -f ${BOOTLOADER_PATH}/.locale ]; then
export LANG="`cat ${BOOTLOADER_PATH}/.locale`" export LANG="$(cat ${BOOTLOADER_PATH}/.locale)"
fi fi
if [ -d /opt/arpl/lang ]; then if [ -d /opt/arpl/lang ]; then
for F in `ls /opt/arpl/lang/*.mo` for F in $(ls /opt/arpl/lang/*.mo); do
do
install "${F}" "/usr/share/locale/$(basename $F .mo)/LC_MESSAGES/arpl.mo" install "${F}" "/usr/share/locale/$(basename $F .mo)/LC_MESSAGES/arpl.mo"
done done
fi fi

View File

@ -1,4 +1,4 @@
#!/usr/bin/env ash #!/usr/bin/env bash
function use() { function use() {
echo "Use: ${0} junior|config" echo "Use: ${0} junior|config"