Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
eepm
Commits
4997a9fa
Commit
4997a9fa
authored
Apr 06, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
distr_info: add long option --service-manager, fix print info formatting
parent
0debdee5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
distr_info
bin/distr_info
+8
-7
No files found.
bin/distr_info
View file @
4997a9fa
...
...
@@ -6,7 +6,7 @@
# You can set ROOTDIR to root system dir
#ROOTDIR=
PROGVERSION
=
"20230
328
"
PROGVERSION
=
"20230
406
"
# TODO: check /etc/system-release
...
...
@@ -857,10 +857,10 @@ Distro name / version (--distro-name/version): $DISTRO_NAME / $DISTRIB_FULL_RELE
Base OS name (-o) / CPU arch (-a):
$(
get_base_os_name
)
$(
get_arch
)
Bug report URL (--bug-report-url):
$(
print_bug_report_url
)
CPU norm register size (-b):
$(
get_bit_size
)
Virtualization (-i):
$(
get_virt
)
CPU Cores/MHz (-c/-z):
$(
get_core_count
)
/
$(
get_core_mhz
)
MHz
System memory size (MB) (-m):
$(
get_memory_size
)
Running service manager (-y):
$(
get_service_manager
)
Virtualization (-i):
$(
get_virt
)
CPU Cores/MHz (-c/-z):
$(
get_core_count
)
/
$(
get_core_mhz
)
MHz
System memory size (MB) (-m):
$(
get_memory_size
)
Running service manager (-y):
$(
get_service_manager
)
(run with -h to get help)
EOF
...
...
@@ -884,7 +884,7 @@ case "$1" in
echo
" -c - print number of CPU cores"
echo
" -i - print virtualization type"
echo
" -m - print system memory size (in MB)"
echo
" -y
- print running service manager"
echo
" -y
|--service-manager
- print running service manager"
echo
" -z - print current CPU MHz"
echo
" --glibc-version - print system glibc version"
echo
...
...
@@ -993,7 +993,8 @@ case "$1" in
pkgvendor
exit
0
;;
-y
)
-y
|
--service-manager
)
override_distrib
"
$2
"
get_service_manager
;;
-V
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment