-while mainsel=$(zenity --title="LED-Settings" --width="400" --height="370" --list --column "id" --column "Please select" --hide-column=1 --text="Welcome to the LED-Settings-Dialogue.\n\nWhat do you want to do?\n" "normal" "Set Power LED Brightness (normal mode)" "power" "Set Power LED Brightness (powersave)" "sd1" "Enable / Disable SD1 LED" "sd2" "Enable / Disable SD2 LED" "wifi" "Enable / Disable WiFi LED" "bt" "Enable / Disable Bluetooth LED" --ok-label="Change Setting" --cancel-label="Exit"); do
+LED_CONF="/etc/pandora/conf/led.conf"
+grep -q HighPowerLED $LED_CONF || echo "LowPowerLED:16" >> $LED_CONF
+grep -q LowPowerLED $LED_CONF || echo "HighPowerLED:255" >> $LED_CONF
+grep -q IdleLED $LED_CONF || echo "IdleLED:48" >> $LED_CONF
+
+while mainsel=$(zenity --title="LED-Settings" --width="400" --height="370" --list --column "id" --column "Please select" --hide-column=1 --text="Welcome to the LED-Settings-Dialogue.\n\nWhat do you want to do?\n" \
+ "normal" "Set Power LED Brightness (normal mode)" \
+ "power" "Set Power LED Brightness (powersave)" \
+ "idle" "Set Power LED Brightness (screen off/idle)" \
+ "sd1" "Enable / Disable SD1 LED" \
+ "sd2" "Enable / Disable SD2 LED" \
+ "wifi" "Enable / Disable WiFi LED" \
+ "bt" "Enable / Disable Bluetooth LED" \
+ --ok-label="Change Setting" --cancel-label="Exit"); do