Advertisement
Guest User

Untitled

a guest
May 6th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. disable_landscape_ad() {
  4. local landscape_conf="/etc/landscape/client.conf"
  5.  
  6. if [[ ! -f $landscape_conf ]]; then
  7. sudo touch $landscape_conf
  8. fi
  9.  
  10. echo -e "[sysinfo]\nexclude_sysinfo_plugins=LandscapeLink" | sudo tee -a $landscape_conf
  11. }
  12.  
  13. remove_cloud_ad() {
  14. local cloud_conf="/etc/update-motd.d/51-cloudguest"
  15.  
  16. if [[ -f $cloud_conf ]]; then
  17. sudo rm $cloud_conf
  18. fi
  19. }
  20.  
  21. main() {
  22. disable_landscape_ad
  23. remove_cloud_ad
  24. /etc/update-motd.d/50-landscape-sysinfo
  25. }
  26.  
  27. main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement