User Tools

Site Tools


haas:scripts:displaycheck

displaycheck.sh

Objective

A LAIRpod support script to help ensure all displaylink heads are brought up on boot.

Usage

The displaycheck.sh should be run automatically from /etc/rc.local, or manually as root on the flake system.

Script

1
extern> http://lab46.corning-cc.edu/haas/content/scripts/displaycheck

Possible Optimizations

Upon further consideration, it may turn out that my nested backtick expansion may not be necessary… due to the fact that the script itself is an execution environment.

One level of backticks is absolutely necessary:

`cat /etc/rc.local | grep $entry | sed 's/&//'` &

As I need to run the command line as stated to generate the command I wish to run… the layer of backticks takes care of the literal command… which outputs the actual command which the shell environment will run.

Some testing will need to be done to ensure this is the truth, if not then double backticks ARE definitely needed.

haas/scripts/displaycheck.txt · Last modified: 2011/09/13 19:58 by 127.0.0.1