Added nweb to /etc/autostart

This commit is contained in:
bauen1 2017-06-19 18:39:53 +02:00
parent f1bcda53e7
commit faa36e15c8
No known key found for this signature in database
GPG Key ID: FF0AAF5E0812BA9C
3 changed files with 8 additions and 2 deletions

View File

@ -29,6 +29,8 @@ install -m755 nweb "$MAIN_SRC_DIR/work/src/minimal_overlay/rootfs/usr/bin/nweb"
install -d -m755 "$MAIN_SRC_DIR/work/src/minimal_overlay/rootfs/srv/www" # FHS compliant location
install -m644 "$SRC_DIR/index.html" "$MAIN_SRC_DIR/work/src/minimal_overlay/rootfs/srv/www/index.html"
install -m644 "$SRC_DIR/favicon.ico" "$MAIN_SRC_DIR/work/src/minimal_overlay/rootfs/srv/www/favicon.ico"
install -d -m755 "$MAIN_SRC_DIR/work/src/minimal_overlay/rootfs/etc"
install -m755 "$SRC_DIR/nweb.sh" "$MAIN_SRC_DIR/work/src/minimal_overlay/rootfs/etc/nweb.sh"
echo "nweb has been installed."
echo "run 'nweb 80 /srv/www &' on your minimal system to run it"
echo "it will be autostarted on boot"

View File

@ -3,9 +3,10 @@
<title>nweb</title>
</head>
<body>
<h1>nweb test page</h1>
<h1><image src="favicon.ico"></image> nweb test page</h1>
<hr>
<p>It works!</p>
<p>You can edit this file in /srv/www/index.html</p>
<p>All rights go to the original author of nweb Nigel Griffiths nag@uk.ibm.com</p>
<p>Feedback is welcome to Nigel Griffiths nag@uk.ibm.com</p>
</p>

View File

@ -0,0 +1,3 @@
#!/bin/sh
echo "starting nweb on port 80 serving /srv/www"
nweb 80 /srv/www