Skip to content

Instantly share code, notes, and snippets.

@volca
Created July 22, 2014 05:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save volca/3aed4a53f29ceb817d71 to your computer and use it in GitHub Desktop.
Save volca/3aed4a53f29ceb817d71 to your computer and use it in GitHub Desktop.
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
#!/bin/sh
/usr/bin/tmux new-session -d "/usr/bin/minicom -C /tmp/ble.log > /dev/null"
/usr/bin/tmux split-window -v "/usr/local/src/sniffer/run.sh > /dev/null 2>&1"
systemctl enable rc-local.service
chmod +x /etc/rc.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment