mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
format
This commit is contained in:
parent
438b344f3d
commit
e16b4f464e
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user