Advertisement
lilo_booter

Untitled

Apr 7th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.76 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. printf "Updating OS Applications...\n"
  4. printf '\nLEDE: %s\n' "$islede"
  5. printf 'MAC: %s\n' "$ismac"
  6. printf 'RPI: %s\n' "$isrpi"
  7. printf '\n'
  8.  
  9. case "$( uname -a )" in
  10. *LEDE*)
  11.     # LEDE Device
  12.     printf 'Updating LEDE repository\n'
  13.     printf 'Eventually run package update for all packages that are not system packages (not kmod or basefile)\n'
  14.     opkg update
  15.     ;;
  16. *Darwin*)
  17.     # MAC Device
  18.     printf 'Updating MAC applications with HomeBrew.\n'
  19.     brew update
  20.     brew upgrade
  21.     ;;
  22. *RPi*)
  23.     # RPI Device
  24.     printf "Updating RPI applications.\n"
  25.     sudo apt-get update
  26.     sudo apt-get upgrade
  27.     ;;
  28. *)
  29.     # Device Unspecified
  30.     printf "Unable to update OS Packages.\n"
  31.     printf "OS: Unable to detect.\n"
  32.     ;;
  33. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement