Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.

Commit acb4a65

Browse files
Add config name to MOTD.
1 parent 971cb35 commit acb4a65

File tree

1 file changed

+2
-1
lines changed
  • OS/buildroot/overlay/etc/init.d

1 file changed

+2
-1
lines changed

OS/buildroot/overlay/etc/init.d/rcS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ cat /media/config/etc/motd > /etc/motd
8989
SYSTEM_VERSION=$(awk 'BEGIN{FS=" ";}{print $2;}' /etc/sw-versions)
9090
echo " system $SYSTEM_VERSION" >> /etc/motd
9191
CONFIG_VERSION=$(awk 'BEGIN{FS=" ";}{print $2;}' /etc/config-version)
92-
echo " config $CONFIG_VERSION" >> /etc/motd
92+
CONFIG_NAME=$(awk 'BEGIN{FS=" ";}{print $1;}' /etc/config-version)
93+
echo " config $CONFIG_VERSION ($CONFIG_NAME)" >> /etc/motd
9394

9495
echo "++ Running all startup scripts"
9596
# Start all init scripts in /etc/init.d

0 commit comments

Comments
 (0)