mirror of
https://github.com/OpenMANET/morse-feed.git
synced 2025-12-11 19:42:38 -06:00
This package contains version 2.21 of shellinabox and a procd service to deploy the software as a daemon for OpenWrt. Shellinabox is the original choice of web terminal used by Morse Micro evaluation kits.
20 lines
500 B
Bash
20 lines
500 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2015 snqu.com
|
|
|
|
USE_PROCD=1
|
|
START=99
|
|
|
|
BIN=/usr/sbin/shellinaboxd
|
|
|
|
start_service() {
|
|
procd_open_instance
|
|
procd_set_param stdout 1
|
|
procd_set_param stderr 1
|
|
procd_set_param respawn
|
|
procd_set_param command $BIN -u root -c /etc/shellinabox \
|
|
--css=/etc/shellinabox/black-on-white.css \
|
|
--css=/etc/shellinabox/white-on-black.css \
|
|
--user-css Normal:+/etc/shellinabox/black-on-white.css,Reverse:-/etc/shellinabox/white-on-black.css
|
|
procd_close_instance
|
|
}
|