#!/bin/sh
! test X$USER = Xroot &&
	echo "Run with root privileges" &&
	exit 1
lmw=$(find /usr |grep /libmateweather.so.1.6.9 |head -1)
test X$lmw = X &&
	lmw=$(find /usr |grep /libmateweather.so.1 |head -1)
test X$lmw = X &&
	echo "libmateweather1 not found" &&
	exit 2
sed -i 's|https://www.aviationweather.gov/adds/dataserver_current/httpparam|https://aviationweather.gov/cgi-bin/data/dataserver.php\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0|' "$lmw"
