This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Turnoff the Chromebook Touchpad - always - | |
# NOTE: 'tpstat.sh' & 'tpoff.sh' should be in your PATH | |
## Get state of Touchpad - 1=on, 0=off | |
TP_STATE="`tpstat.sh`" | |
# | |
# Turn off Touchpad | |
if [ "$TP_STATE" = 0 ]; # TOUCHPAD IS OFF | |
then echo "'touchpad' already off" | |
else echo "Turning Touchpad off to ignore inadvertent touching..." ; tpoff.sh | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Script to get the status of the Trackpad device | |
#DEBUG='' | |
[[ -n "$DEBUG" ]] && set -x | |
TP='' | |
TPSTATE='' | |
TPSTATUS='' | |
#VERBOSE='' | |
## Get Trackpad ID number from Crosh | |
#+ Write a custom crosh script to get the trackpad id number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Script to turn OFF the Trackpad device | |
#DEBUG='' | |
[[ -n "$DEBUG" ]] && set -x | |
TP='' | |
#VERBOSE='' | |
## Get Trackpad ID number from Crosh | |
#+ Write a custom crosh script to get the trackpad id number | |
echo "crosh <<ENDCROSH | |
inputcontrol --names |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Script to turn ON the Trackpad device | |
#DEBUG='' | |
[[ -n "$DEBUG" ]] && set -x | |
TP='' | |
#VERBOSE='' | |
## Get Trackpad ID number from Crosh | |
#+ Write a custom crosh script to get the trackpad id number | |
echo "crosh <<ENDCROSH | |
inputcontrol --names |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# Copyright (c) 2014 The crouton Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
APPLICATION="${0##*/}" | |
CHROOT_LOC='/usr/local/chroots' | |
[ -d /var/crouton/chroots ] && CHROOT_LOC='/var/crouton/chroots' | |
[ ! -d "$CHROOT_LOC" ] && CHROOT_LOC='' | |
CHROOT_NAME='' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
C_ROOT='' | |
C_KERNEL='' | |
## | |
## Exits the script with exit code $1, spitting out message $@ to stderr | |
error() { | |
local ecode="$1" | |
shift | |
echo "$*" 1>&2 | |
exit "$ecode" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
description "mount CROUTON on /var/crouton" | |
author "drinkcat & DennisLfromGA" | |
start on starting boot-services | |
task | |
script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### | |
### Set Variables | |
APPLICATION="${0##*/}" | |
CHECK_IT='' | |
CHROOT_LOC=/usr/local/chroots | |
[ -d /var/crouton/chroots ] && CHROOT_LOC='/var/crouton/chroots' | |
[ ! -d "$CHROOT_LOC" ] && CHROOT_LOC='' | |
CHROOT_NAME='' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
## A script to capture a 'screencast' on your Chromebook via 'crouton' (http://goo.gl/fd3zc) by David Schneider. | |
#+ This is a modified version of the original script 'screencast.sh' (http://goo.gl/UmWAta) by Francois Beaufort. | |
#+ This 'screencast' modified source (and author) can be found here - (https://gist.github.com/DennisLfromGA/8441689) | |
# Needs to run in bash so do it. | |
if [ -z "$BASH_VERSION" ]; then exec bash -e "$0" "$@"; fi | |
APPLICATION="${0##*/}" | |
ARGNUM="$#" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# Mount SMEStorage Cloud folders locally | |
Bname="${0##*/}" | |
Crosh_Loc='' | |
Local_User="$(id -un)" | |
SMEmount='' | |
Umount='' | |
USAGE=" | |
${Bname} [options] |