morse-feed/utils/shellinabox/files/shellinaboxd.init
Morse Micro ea61c323ef shellinabox: add OpenWrt package to deploy shellinabox
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.
2024-10-04 14:17:36 +10:00

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
}