modify system-info.sh
This commit is contained in:
parent
68ecabc46e
commit
c6b3be16dd
@ -1,4 +1,4 @@
|
|||||||
#/bin/sh
|
#/bin/bash
|
||||||
#Copyright (c) [2019] Huawei Technologies Co., Ltd.
|
#Copyright (c) [2019] Huawei Technologies Co., Ltd.
|
||||||
#generic-release is licensed under the Mulan PSL v1.
|
#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.
|
#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)
|
user_num=$(users | wc -w)
|
||||||
|
|
||||||
# Ip address
|
# 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 "\n"
|
||||||
echo -e "Welcome to $welcome\n"
|
echo -e "Welcome to $welcome\n"
|
||||||
@ -54,5 +55,4 @@ then
|
|||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
else
|
else
|
||||||
echo -e "To run a command as administrator(user \"root\"),use \"sudo <command>\"."
|
echo -e "To run a command as administrator(user \"root\"),use \"sudo <command>\"."
|
||||||
echo "See "man sudo_root" for details"
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
%define dist_release_version 8
|
%define dist_release_version 8
|
||||||
%define generic_version 1.0
|
%define generic_version 1.0
|
||||||
%define generic_patch_level %{nil}
|
%define generic_patch_level %{nil}
|
||||||
%define generic_release 21
|
%define generic_release 22
|
||||||
%define builtin_release_version 1.0
|
%define builtin_release_version 1.0
|
||||||
|
|
||||||
%define current_arch %{_arch}
|
%define current_arch %{_arch}
|
||||||
@ -117,6 +117,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
/usr/share/eula/eula.*
|
/usr/share/eula/eula.*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Dec 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0-21
|
||||||
- Delete unneeded info
|
- Delete unneeded info
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user