Added nweb to /etc/autostart
This commit is contained in:
parent
f1bcda53e7
commit
faa36e15c8
@ -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 -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/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 -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 "nweb has been installed."
|
||||||
echo "run 'nweb 80 /srv/www &' on your minimal system to run it"
|
echo "it will be autostarted on boot"
|
||||||
|
@ -3,9 +3,10 @@
|
|||||||
<title>nweb</title>
|
<title>nweb</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>nweb test page</h1>
|
<h1><image src="favicon.ico"></image> nweb test page</h1>
|
||||||
<hr>
|
<hr>
|
||||||
<p>It works!</p>
|
<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>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>Feedback is welcome to Nigel Griffiths nag@uk.ibm.com</p>
|
||||||
</p>
|
</p>
|
||||||
|
3
src/minimal_overlay/bundles/nweb/nweb.sh
Normal file
3
src/minimal_overlay/bundles/nweb/nweb.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "starting nweb on port 80 serving /srv/www"
|
||||||
|
nweb 80 /srv/www
|
Loading…
x
Reference in New Issue
Block a user