--- /dev/null
+# Server connection settings
+SERVER=my.icecast2server.org
+PORT=80 # port to stream to
+PASSWORD=hackme
+
+# Stream settings
+BITRATE=1000000 # Bitrate of the video, in bps
+SOUNDQUALITY=0.4 # OGG compression quality, from 0 to 1
+FRAMERATE=20 # frames per second
+SHOWPOINTER="true" # show or hide the mouse pointer
+# Width and height are upper limits. Video will not be upscaled or stretched, it would be proportionally downscaled to fit the WIDTH and HEIGHT dimensions
+WIDTH=1280
+HEIGHT=720
+
# Server side dependencies: icecast2
-# Server connection settings
-SERVER=my.icecast2server.org
-PORT=80 # port to stream to
-PASSWORD=hackme
-
-# Stream settings
-BITRATE=1000000 # Bitrate of the video, in bps
-SOUNDQUALITY=0.4 # OGG compression quality, from 0 to 1
-FRAMERATE=20 # frames per second
-SHOWPOINTER="true" # show or hide the mouse pointer
-# Width and height are upper limits. Video will not be upscaled or stretched, it would be proportionally downscaled to fit the WIDTH and HEIGHT dimensions
-WIDTH=1280
-HEIGHT=720
+. config
+if [ "$PASSWORD" = "hackme" ]; then
+ echo Edit ./config to set up your server, password, and other parameters
+ exit 1
+fi
DATE=$(date +%Y-%m-%d-%H_%M_%S)
MOUNT=$1