From 6565a9fc9e80bd0139c9fade5d086237838767b9 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Fri, 10 Jun 2016 08:55:53 -0700 Subject: [PATCH] Add ocaml to system --- ubuntu/99_physlock_on_hibernate_and_suspend | 13 +++++++++++++ ubuntu/installer.sh | 5 +++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100755 ubuntu/99_physlock_on_hibernate_and_suspend diff --git a/ubuntu/99_physlock_on_hibernate_and_suspend b/ubuntu/99_physlock_on_hibernate_and_suspend new file mode 100755 index 0000000..4247d5e --- /dev/null +++ b/ubuntu/99_physlock_on_hibernate_and_suspend @@ -0,0 +1,13 @@ +#!/bin/bash + +case "$1" in +suspend|hibernate) + actions to + take + on suspend + or hibernate + ;; +resume|thaw) + physlock -d & + ;; +esac diff --git a/ubuntu/installer.sh b/ubuntu/installer.sh index 2d32959..993f4fe 100644 --- a/ubuntu/installer.sh +++ b/ubuntu/installer.sh @@ -37,12 +37,14 @@ echo "Installing Dmenu..." sudo apt-get -qq -y install suckless-tools # Languages -echo "Installing languages..." +echo "Installing languages and tools..." sudo apt-get -qq -y install python-dev sudo apt-get -qq -y install python-pip sudo apt-get -qq -y install python3-dev sudo apt-get -qq -y install python3-pip sudo apt-get -qq -y install m4 +sudo apt-get -qq -y install ocaml +sudo apt-get -qq -y install aspcud wget https://raw.github.com/ocaml/opam/master/shell/opam_installer.sh -O - | sh -s /usr/local/bin # Editors @@ -87,7 +89,6 @@ sudo apt-get -qq -y install xdotool sudo apt-get -qq -y install cmake sudo apt-get -qq -y install gsimplecal sudo apt-get -qq -y install xclip -sudo apt-get -qq -y install aspcud # Comms echo "Installing comms..."