Advertisement
coffeehedake

106_bg_selector.sh

Jul 22nd, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.58 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
  4.  
  5. # Defining valid groups for various background installations
  6.  
  7. #hblabl=hb106computerlableft
  8. #hblabr=hb106computerlabright
  9. #lgslab=lgsc01mm
  10. #hcslab=hcs31mm
  11. #hbtlc1=hbtlcdesktopsfloor1
  12. #lgstlcim=lgslibraryim
  13. #lgstlcmm=lgslibrarymm
  14. #hcstlc=hcslibim
  15.  
  16.  
  17. # Uncomment this and assign a group for testing purposes
  18. #COMPUTER_GROUP=testgroupdoesnotexist
  19.  
  20.  
  21. # If COMPUTER_GROUP is empty, exit with an error code.  
  22. if [[ -z "${DS_COMPUTER_GROUP}" ]]; then
  23.     echo "COMPUTER_GROUP is blank.  No background image will be installed."
  24.     exit 1
  25. fi
  26.  
  27.  
  28. # If machine's group in DeployStudio is the HB Left, then install Har-Bur Computer Lab background image
  29. if [ "${DS_COMPUTER_GROUP}" == "hb106computerlableft" ]; then
  30.     echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
  31.     echo "Installing HB Lab background image…"
  32.     echo "RuntimeSelectWorkflow: A9920922-F8F7-4CF2-8BDB-4243303C8C3F"
  33.  
  34.  
  35. # If machine's group in DeployStudio is the HB Right, then install Har-Bur Computer Lab background image
  36. elif [ "${DS_COMPUTER_GROUP}" == "hb106computerlabright" ]; then
  37.     echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
  38.     echo "Installing HB Lab background image…"
  39.     echo "RuntimeSelectWorkflow: A9920922-F8F7-4CF2-8BDB-4243303C8C3F"
  40.  
  41.  
  42. # If machine's group in DeployStudio is the LGS Lab, then install then install Lake Garda Computer Lab background image
  43. elif [ "${DS_COMPUTER_GROUP}" == "lgsc01mm" ]; then
  44.     echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
  45.     echo "Installing LGS Lab background image…"
  46.     echo "RuntimeSelectWorkflow: REPLACEME"
  47.  
  48.  
  49. # If machine's group in DeployStudio is the HCS Lab, then install Harwinton Consolidated Computer Lab background image
  50. elif [ "${DS_COMPUTER_GROUP}" == "hcs31mm" ]; then
  51.     echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
  52.     echo "Installing HCS Lab background image…"
  53.     echo "RuntimeSelectWorkflow: REPLACEME"
  54.  
  55.  
  56. # If machine's group in DeployStudio is TLC 1st Floor, then install The HB Learning Center background image
  57. elif [ "${DS_COMPUTER_GROUP}" == "hbtlcdesktopsfloor1" ]; then
  58.     echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
  59.     echo "Installing HB TLC background image…"
  60.     echo "RuntimeSelectWorkflow: C8CB0BC3-8CFD-4937-B3DE-3E91F71CF5BD"
  61.  
  62. # If machine's group in DeployStudio is LGS Library, then install The LGS Learning Center background image
  63. elif [ "${DS_COMPUTER_GROUP}" == "${lgstlcim}" ]; then
  64.     echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
  65.     echo "Installing LGS TLC background image…"
  66.     echo "RuntimeSelectWorkflow: REPLACEME"
  67.  
  68.  
  69. # If machine's group in DeployStudio is LGS Library, then install The LGS Learning Center background image
  70. elif [ "${DS_COMPUTER_GROUP}" == "${lgstlcmm}" ]; then
  71.     echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
  72.     echo "Installing LGS TLC background image…"
  73.     echo "RuntimeSelectWorkflow: REPLACEME"
  74.  
  75.  
  76. # If machine's group in DeployStudio is HCS Library, then install The HCS Learning Center background image
  77. elif [ "${DS_COMPUTER_GROUP}" == "${hcstlc}" ]; then
  78.     echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
  79.     echo "Installing HCS TLC background image…"
  80.     echo "RuntimeSelectWorkflow: REPLACEME"
  81.  
  82.  
  83. # If the machine doesn't match any of these conditions, then it does not need iLife.
  84. else
  85.     echo "Machine is not deployed to an area that requires a custom background image."
  86.     echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
  87.     echo "Installing Generic RSD10 background image…"
  88.     echo "RuntimeSelectWorkflow: ABE12FB2-3762-4916-8178-B9C51DBDEDB5"
  89. fi
  90.  
  91.  
  92. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement