This commit is contained in:
Ing 2023-12-08 17:55:38 +08:00
parent 2ab0756070
commit 9b5be3cb3c
4 changed files with 13 additions and 10 deletions

View File

@ -13,7 +13,7 @@ WORK_PATH = os.path.abspath(os.path.dirname(__file__))
@click.group()
def cli():
"""
The CLI is a commands to arpl.
The CLI is a commands to RR.
"""
pass

View File

@ -175,7 +175,7 @@ echo
DSMLOGO="$(readConfigKey "dsmlogo" "${USER_CONFIG_FILE}")"
if [ "${DSMLOGO}" = "true" -a -c "/dev/fb0" ]; then
IP="$(getIP)"
[ -n "${IP}" ] && URL="http://${IP}:7681" || URL="http://arpl:7681/"
[ -n "${IP}" ] && URL="http://${IP}:7681" || URL="http://rr:7681/"
python ${WORK_PATH}/include/functions.py makeqr -d "${URL}" -l "bl" -o "${TMP_PATH}/qrcode.png"
[ -f "${TMP_PATH}/qrcode.png" ] && echo | fbv -acufi "${TMP_PATH}/qrcode.png" >/dev/null 2>/dev/null || true
fi

View File

@ -1257,7 +1257,10 @@ function advancedMenu() {
editGrubCfg
NEXT="e"
;;
t) tryRecoveryDSM ;;
t)
tryRecoveryDSM
NEXT="e"
;;
s)
MSG=""
NUMPORTS=0

View File

@ -109,23 +109,23 @@
* log:
```
# 内核相关
sysctl -n kernel.syno_serial # 查看当前鉴权的SN
cat /proc/sys/kernel/syno_serial # 查看当前鉴权的SN
sysctl -n kernel.syno_mac_address1 # 查看当前鉴权的mcac1 (kernel.syno_mac_addresses)
cat /proc/sys/kernel/syno_mac_address1 # 查看当前鉴权的mcac1 (/proc/sys/kernel/syno_mac_addresses)
sysctl -n kernel.syno_serial # 查看当前鉴权的 SN
cat /proc/sys/kernel/syno_serial # 查看当前鉴权的 SN
sysctl -n kernel.syno_mac_address1 # 查看当前鉴权的 mac1 (kernel.syno_mac_addresses)
cat /proc/sys/kernel/syno_mac_address1 # 查看当前鉴权的 mac1 (/proc/sys/kernel/syno_mac_addresses)
sysctl -n kernel.syno_internal_netif_num # 查看当前鉴权的网卡数量
cat /proc/sys/kernel/syno_internal_netif_num # 查看当前鉴权的网卡数量
nproc # 查看当前线程数
# 设备相关
lsmod # 查看已加载驱动
lsusb # 查看USB设备
lsusb # 查看 USB 设备
lsblk # 查看磁盘设备
lspci -Qnn # 查看PCI设备
lspci -Qnn # 查看 PCI 设备
# 驱动相关
ls -ld /sys/class/net/*/device/driver # 查看已加载网卡和对应驱动
cat /sys/class/net/*/address # 查看已加载网卡的MAC地址
cat /sys/class/net/*/address # 查看已加载网卡的 MAC 地址
# 磁盘相关
fdisk -l # 查看硬盘信息