You are here |
rogs.me | ||
| | | |
blog.rogs.me
|
|
| | | | ||
| | | |
blog.rogs.me
|
|
| | | | ||
| | | |
whatibroke.com
|
|
| | | | Here are all the commands required condensed into a single script (thanks Copilot): #!/bin/bash USB_MOUNT="/media/usb" SWAPFILE="$USB_MOUNT/swapfile" # Check if USB drive is mounted if mountpoint -q "$USB_MOUNT"; then echo "USB drive found at $USB_MOUNT." # Check if swap file exists if [ -f "$SWAPFILE" ]; then echo "Swap file already exists at $SWAPFILE." else echo... | |
| | | |
blog.orhun.dev
|
|
| | FOSS ? Linux ? Programming |