diff --git a/web-splash/ipkg/control b/web-splash/ipkg/control index e42993f..4109891 100644 --- a/web-splash/ipkg/control +++ b/web-splash/ipkg/control @@ -1,6 +1,6 @@ Package: web-splash Priority: optional -Version: 0.1 +Version: 0.1-3 Architecture: mipsel Maintainer: Lars Kruse Section: net diff --git a/web-splash/ipkg/postinst b/web-splash/ipkg/postinst new file mode 100755 index 0000000..bd80863 --- /dev/null +++ b/web-splash/ipkg/postinst @@ -0,0 +1,7 @@ +#!/bin/sh + +echo +echo "Starting web-splash ..." +/etc/init.d/S89web-splash start +echo +echo "Maybe you should restart your webserver (thttpd needs this to see the new error-404-document).." diff --git a/web-splash/ipkg/postrm b/web-splash/ipkg/postrm new file mode 100755 index 0000000..187eaf4 --- /dev/null +++ b/web-splash/ipkg/postrm @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ -e /www/index.html.orig ] + then echo + echo "Restoring original /www/index.html.orig to /www/index.html" + mv /www/index.html.orig /www/index.html + fi diff --git a/web-splash/ipkg/preinst b/web-splash/ipkg/preinst new file mode 100755 index 0000000..8027088 --- /dev/null +++ b/web-splash/ipkg/preinst @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ -e /www/index.html ] + then echo + echo "Renaming /www/index.html to /www/index.html.orig" + mv /www/index.html /www/index.html.orig + fi diff --git a/web-splash/ipkg/prerm b/web-splash/ipkg/prerm new file mode 100755 index 0000000..df3d0ee --- /dev/null +++ b/web-splash/ipkg/prerm @@ -0,0 +1,4 @@ +#!/bin/sh + +echo "Stopping web-splash ..." +/etc/init.d/S89web-splash stop || true diff --git a/web-splash/ipkg/rules b/web-splash/ipkg/rules index cc53d5a..071ac82 100755 --- a/web-splash/ipkg/rules +++ b/web-splash/ipkg/rules @@ -30,8 +30,8 @@ install: @# startup script @mkdir -p $(DESTDIR)/etc/init.d - @echo -e "#!/bin/sh\n/usr/bin/web-splash.sh start" >$(DESTDIR)/etc/init.d/S90web-splash - @chmod +x $(DESTDIR)/etc/init.d/S90web-splash + @echo -e "#!/bin/sh\n/usr/bin/web-splash.sh start" >$(DESTDIR)/etc/init.d/S89web-splash + @chmod +x $(DESTDIR)/etc/init.d/S89web-splash clean: @echo "done" diff --git a/web-splash/splash-site/splash-info.html b/web-splash/splash-site/splash-info.html index 4977ebf..2432f5e 100644 --- a/web-splash/splash-site/splash-info.html +++ b/web-splash/splash-site/splash-info.html @@ -7,7 +7,7 @@



-

Here we are ...

+

Deine Verbindung ins Internet wurde freigeschaltet ...