xfce4-conf.zip: Removed mail and messenger link from XFCE panel
[openpandora.oe.git] / recipes / pandora-system / pandora-scripts / op_videofir.sh
index 2461b0d..b63c6d7 100755 (executable)
@@ -16,6 +16,9 @@ fi
 apply_filter()
 {
        file="${1}"
+       if [ ! -f "$file" ]; then
+           file="${1}_up"
+       fi
        if [ -f "$file" ]; then
                # hardcode overlay for now.. We'll update this as needed
                echo "writing fir:"
@@ -23,6 +26,8 @@ apply_filter()
                sed -n 3,10p "$file" > "/sys/devices/platform/omapdss/overlay1/filter_coef_up_h"
                sed -n 12,19p "$file" > "/sys/devices/platform/omapdss/overlay1/filter_coef_up_v3"
                sed -n 21,28p "$file" > "/sys/devices/platform/omapdss/overlay1/filter_coef_up_v5"
+       else
+           echo "No filter with that name"
        fi
 }