#!/bin/bash # This script sets the options interpreted by the server at runtime. # Enclose any settings that have whitespace with "quotation marks". ## DO NOT EDIT THESE OPTIONS LOGERR=0 LOGWARN=1 LOGNOTE=2 LOGINFO=3 LOGDEBUG=4 ## OPTIONS PASSED TO SERVER # Set the verbosity of log messages verbosity="$LOGDEBUG" # Set to 1/0 to enable/disable the pin module (gives direct control over GPIO/ADC/PWM) #TODO: This option isn't actually implemented yet... pin_test="0" # Set to the URI to use authentication # (Uncomment one of these to enable authentication) #LDAP auth #auth_uri="ldap://192.168.1.1#ou=People,dc=daedalus" #auth_uri="ldaps://ldap.pheme.uwa.edu.au#ou=Users,ou=UWA,dc=uwads,dc=uwa,dc=edu,dc=au" #UWA #Shadow auth (choose the file location) #auth_uri="/etc/shadow" #auth_uri="shadow" #UserCake #auth_uri="mysql://localhost#usercake,$(cat mysql_password)" ## OPTIONS TO BE PASSED TO SERVER; DO NOT EDIT if [ -n "$auth_uri" ]; then parameters="-v $verbosity -p $pin_test -A $auth_uri" else parameters="-v $verbosity -p $pin_test" fi;