modify system-info.sh

This commit is contained in:
zhangrui 2020-01-07 21:47:23 +08:00
parent 68ecabc46e
commit c6b3be16dd
2 changed files with 9 additions and 6 deletions

View File

@ -1,4 +1,4 @@
#/bin/sh
#/bin/bash
#Copyright (c) [2019] Huawei Technologies Co., Ltd.
#generic-release is licensed under the Mulan PSL v1.
#You can use this software according to the terms and conditions of the Mulan PSL v1.
@ -37,7 +37,8 @@ processes=$(ps aux | wc -l)
user_num=$(users | wc -w)
# Ip address
ip_address=$(/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6 | awk '{print $2}' | tr -d "addr:")
ip_pre=$(/sbin/ip a|grep inet|grep -v 127.0.0.1|grep -v inet6 | awk '{print $2}' | head -1)
ip_address=${ip_pre%/*}
echo -e "\n"
echo -e "Welcome to $welcome\n"
@ -54,5 +55,4 @@ then
echo -e "\n"
else
echo -e "To run a command as administrator(user \"root\"),use \"sudo <command>\"."
echo "See "man sudo_root" for details"
fi

View File

@ -5,7 +5,7 @@
%define dist_release_version 8
%define generic_version 1.0
%define generic_patch_level %{nil}
%define generic_release 21
%define generic_release 22
%define builtin_release_version 1.0
%define current_arch %{_arch}
@ -117,6 +117,9 @@ rm -rf $RPM_BUILD_ROOT
/usr/share/eula/eula.*
%changelog
* Tue Jan 7 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0-22
- fix welcome information
* Fri Dec 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0-21
- Delete unneeded info