Diverse Modifikationen; Elimination von gammu-smsd
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# Defaults for gammu-smsd initscript
|
||||
# sourced by /etc/init.d/gammu-smsd
|
||||
# installed at /etc/default/gammu-smsd by the maintainer scripts
|
||||
|
||||
#
|
||||
# This is a POSIX shell fragment
|
||||
#
|
||||
|
||||
# Additional options that are passed to the Daemon.
|
||||
DAEMON_OPTS=""
|
||||
|
||||
# user to use (gammu is default)
|
||||
#USER=gammu
|
||||
USER=beieli
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
#imis/internet is the apn for idea connection
|
||||
connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs -T gprs.swisscom.ch"
|
||||
|
||||
# For Raspberry Pi3 use /dev/ttyS0 as the communication port:
|
||||
/dev/ttyAMA0
|
||||
|
||||
# Baudrate
|
||||
115200
|
||||
|
||||
# Assumes that your IP address is allocated dynamically by the ISP.
|
||||
noipdefault
|
||||
|
||||
# Try to get the name server addresses from the ISP.
|
||||
usepeerdns
|
||||
|
||||
# Use this connection as the default route to the internet.
|
||||
defaultroute
|
||||
|
||||
# Replace any existing default routes
|
||||
replacedefaultroute
|
||||
|
||||
# Makes PPPD "dial again" when the connection is lost.
|
||||
persist
|
||||
|
||||
# Do not ask the remote to authenticate.
|
||||
noauth
|
||||
|
||||
# No hardware flow control on the serial link with GSM Modem
|
||||
nocrtscts
|
||||
|
||||
# No modem control lines with GSM Modem
|
||||
local
|
||||
@@ -0,0 +1 @@
|
||||
beieli ALL=(ALL) NOPASSWD: /sbin/init,/home/beieli/root-bin/connect_to_internet,/home/beieli/root-bin/disconnect_from_internet,/home/beieli/root-bin/hotspot_on,/home/beieli/root-bin/hotspot_off
|
||||
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=SMS daemon for Gammu
|
||||
Documentation=man:gammu-smsd(1)
|
||||
After=mysql.service postgresql.service
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=-/etc/sysconfig/gammu-smsd
|
||||
# Run daemon as root user
|
||||
#ExecStart=/usr/bin/gammu-smsd --pid=/var/run/gammu-smsd.pid --daemon
|
||||
# Run daemon as non-root user (set user/group in /etc/sysconfig/gammu-smsd)
|
||||
ExecStart=/usr/bin/gammu-smsd --user=beieli --group=gammu --pid=/var/run/gammu-smsd.pid --daemon
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
ExecStopPost=/bin/rm -f /var/run/gammu-smsd.pid
|
||||
Type=forking
|
||||
PIDFile=/var/run/gammu-smsd.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user