Skip to content

Commit d9c0b5d

Browse files
committed
Modules, with cursed cat
1 parent a777a92 commit d9c0b5d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
install lfetch /usr/bin/lfetch

lfetch

+6
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ get_uptime()
5151
output="${hours} hours, ${minutes} minutes, ${seconds} seconds"
5252
}
5353

54+
get_modules()
55+
{
56+
output=$(cat /proc/modules | wc -l)
57+
}
58+
5459
get_ptys()
5560
{
5661
devices=$(ls -l /dev/pts | wc -l)
@@ -93,6 +98,7 @@ info "Hostname ~ " hostname
9398
info "Version ~ " version
9499
info "Last update date ~ " last_update_date
95100
info "Uptime ~ " uptime
101+
info "Modules ~ " modules
96102
info "Terminals open ~ " ptys
97103
info "Bootloader type ~ " bootloader
98104
info "Cmdline ~ " cmdline

0 commit comments

Comments
 (0)