mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[welcome] add users check
This commit is contained in:
parent
1607eaca4f
commit
5698aa29a0
1 changed files with 6 additions and 1 deletions
|
@ -206,8 +206,13 @@ def get_system_info():
|
||||||
info('Kernel', '%s %s', platform.system(), platform.release())
|
info('Kernel', '%s %s', platform.system(), platform.release())
|
||||||
|
|
||||||
info('Uptime', format_timedelta(uptime()))
|
info('Uptime', format_timedelta(uptime()))
|
||||||
info('Users', users())
|
|
||||||
|
users_info = users()
|
||||||
|
if users_info:
|
||||||
|
info('Users', users_info)
|
||||||
|
|
||||||
info('Shell', shell())
|
info('Shell', shell())
|
||||||
|
|
||||||
info('IP address', local_ip)
|
info('IP address', local_ip)
|
||||||
|
|
||||||
info_lines.append('')
|
info_lines.append('')
|
||||||
|
|
Loading…
Reference in a new issue