advanced package installation and removal
This commit is contained in:
parent
63afdb8052
commit
2b10c9a7c0
7 changed files with 29 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
Package: web-splash
|
Package: web-splash
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Version: 0.1
|
Version: 0.1-3
|
||||||
Architecture: mipsel
|
Architecture: mipsel
|
||||||
Maintainer: Lars Kruse <devel@sumpfralle.de>
|
Maintainer: Lars Kruse <devel@sumpfralle.de>
|
||||||
Section: net
|
Section: net
|
||||||
|
|
7
web-splash/ipkg/postinst
Executable file
7
web-splash/ipkg/postinst
Executable file
|
@ -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).."
|
7
web-splash/ipkg/postrm
Executable file
7
web-splash/ipkg/postrm
Executable file
|
@ -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
|
7
web-splash/ipkg/preinst
Executable file
7
web-splash/ipkg/preinst
Executable file
|
@ -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
|
4
web-splash/ipkg/prerm
Executable file
4
web-splash/ipkg/prerm
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "Stopping web-splash ..."
|
||||||
|
/etc/init.d/S89web-splash stop || true
|
|
@ -30,8 +30,8 @@ install:
|
||||||
|
|
||||||
@# startup script
|
@# startup script
|
||||||
@mkdir -p $(DESTDIR)/etc/init.d
|
@mkdir -p $(DESTDIR)/etc/init.d
|
||||||
@echo -e "#!/bin/sh\n/usr/bin/web-splash.sh start" >$(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/S90web-splash
|
@chmod +x $(DESTDIR)/etc/init.d/S89web-splash
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo "done"
|
@echo "done"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<BR><BR><BR><BR>
|
<BR><BR><BR><BR>
|
||||||
|
|
||||||
<H1 ALIGN="CENTER">Here we are ...</H1>
|
<H1 ALIGN="CENTER">Deine Verbindung ins Internet wurde freigeschaltet ...</H1>
|
||||||
|
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
|
Loading…
Reference in a new issue