mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-13 16:18:52 +01:00
add IP address to Recovery information
Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
parent
c1fd9e55d6
commit
32dd326342
@ -16,8 +16,8 @@ menu_display () {
|
|||||||
case ${entry} in
|
case ${entry} in
|
||||||
0)
|
0)
|
||||||
|
|
||||||
# Version
|
# Information
|
||||||
message=" VERSION"
|
message=" INFO"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
1)
|
1)
|
||||||
@ -90,7 +90,7 @@ menu_run () {
|
|||||||
case ${entry} in
|
case ${entry} in
|
||||||
0)
|
0)
|
||||||
|
|
||||||
# Version
|
# Information
|
||||||
rootfs_mount=/tmp/rootfs
|
rootfs_mount=/tmp/rootfs
|
||||||
mkdir -p ${rootfs_mount}
|
mkdir -p ${rootfs_mount}
|
||||||
mount -t ext4 -o ro /dev/mmcblk0p2 ${rootfs_mount}
|
mount -t ext4 -o ro /dev/mmcblk0p2 ${rootfs_mount}
|
||||||
@ -101,7 +101,8 @@ menu_run () {
|
|||||||
fi
|
fi
|
||||||
umount ${rootfs_mount}
|
umount ${rootfs_mount}
|
||||||
version_recovery=$(grep Recovery /etc/sw-versions | cut -f 2)
|
version_recovery=$(grep Recovery /etc/sw-versions | cut -f 2)
|
||||||
notif "${message}^^ Recovery: ${version_recovery}^ rootfs : ${version_rootfs}"
|
ip_addr=$(ifconfig usb0 | grep "inet " | awk -F'[: ]+' '{ print $4 }')
|
||||||
|
notif "${message}^^ Recovery: ${version_recovery}^ rootfs : ${version_rootfs}^ IP addr : ${ip_addr}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
1)
|
1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user