Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ sudo checkforupdates.sh
source ~/.bashrc
```

**Option B: Bash Profile (for ~/.bash_profile)**
**Option B: Profile (for ~/.profile)**
```bash
echo 'export PATH=~/scripts:$PATH' >> ~/.bash_profile
source ~/.bash_profile
echo 'export PATH=~/scripts:$PATH' >> ~/.profile
source ~/.profile
```

**Option C: System-wide (requires sudo)**
Expand Down Expand Up @@ -181,9 +181,9 @@ If symlinked to `/usr/local/bin/`:
sudo rm /usr/local/bin/showhardware /usr/local/bin/checkforupdates
```

Remove from PATH (if using ~/.bashrc or ~/.bash_profile):
Remove from PATH (if using ~/.bashrc or ~/.profile):
```bash
# Edit ~/.bashrc or ~/.bash_profile and remove the PATH line
# Edit ~/.bashrc or ~/.profile and remove the PATH line
sudo vi ~/.bashrc
# Find and delete: export PATH=~/scripts:$PATH
```
Expand Down
4 changes: 2 additions & 2 deletions checkforupdates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ apt autoremove --yes
# Check for Snap
if command -v snap &> /dev/null; then
echo "Refreshing Snap packages..."
snap refresh --stable
snap refresh || echo "Snap refresh encountered an error, continuing..."
else
echo "Snap is not installed."
fi

# Check for Flatpak
if command -v flatpak &> /dev/null; then
echo "Refreshing Flatpak packages..."
flatpak upgrade --assumeyes
flatpak upgrade --assumeyes || echo "Flatpak upgrade encountered an error, continuing..."
else
echo "Flatpak is not installed."
fi
Expand Down
14 changes: 7 additions & 7 deletions showhardware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ fi
HEADER="\n===================="
FOOTER="====================\n"

printf "$HEADER System Information $FOOTER"
printf "%b" "$HEADER System Information $FOOTER"
uname -a

printf "$HEADER Hardware Details $FOOTER"
printf "%b" "$HEADER Hardware Details $FOOTER"
lshw -businfo

printf "$HEADER BIOS and System Enclosure Information $FOOTER"
printf "%b" "$HEADER BIOS and System Enclosure Information $FOOTER"
dmidecode --type 0,1,3

printf "$HEADER CPU Information $FOOTER"
printf "%b" "$HEADER CPU Information $FOOTER"
lscpu

printf "$HEADER Memory Information $FOOTER"
printf "%b" "$HEADER Memory Information $FOOTER"
free -h

printf "$HEADER Disk Usage $FOOTER"
printf "%b" "$HEADER Disk Usage $FOOTER"
df -h /

printf "$HEADER Network Interfaces $FOOTER"
printf "%b" "$HEADER Network Interfaces $FOOTER"
ip -br addr