Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- printf "Updating OS Applications...\n"
- printf '\nLEDE: %s\n' "$islede"
- printf 'MAC: %s\n' "$ismac"
- printf 'RPI: %s\n' "$isrpi"
- printf '\n'
- case "$( uname -a )" in
- *LEDE*)
- # LEDE Device
- printf 'Updating LEDE repository\n'
- printf 'Eventually run package update for all packages that are not system packages (not kmod or basefile)\n'
- opkg update
- ;;
- *Darwin*)
- # MAC Device
- printf 'Updating MAC applications with HomeBrew.\n'
- brew update
- brew upgrade
- ;;
- *RPi*)
- # RPI Device
- printf "Updating RPI applications.\n"
- sudo apt-get update
- sudo apt-get upgrade
- ;;
- *)
- # Device Unspecified
- printf "Unable to update OS Packages.\n"
- printf "OS: Unable to detect.\n"
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement