mirror of
https://github.com/fosrl/newt.git
synced 2026-07-18 04:43:34 -05:00
16 lines
342 B
Bash
16 lines
342 B
Bash
#!/bin/sh
|
|
|
|
MODNAME=newt
|
|
|
|
# Ensure scripts are executable
|
|
chmod +x /opt/$MODNAME/etc/init
|
|
chmod +x /opt/$MODNAME/etc/install
|
|
chmod +x /opt/$MODNAME/etc/uninstall
|
|
chmod +x /opt/$MODNAME/bin/newt
|
|
chmod +x /opt/$MODNAME/www/index.cgi
|
|
|
|
# Secure the web interface with router authentication
|
|
ln -sf /etc/htpasswd /opt/$MODNAME/www/.htpasswd
|
|
|
|
exit 0
|