Skip to content

Heyn2016/Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 

Repository files navigation

Linux Shell for ARM(imx6)

[1] ME909s821_ECM

$

[2] Configure service

$vim configure.service [Unit]
Description=Pbox configure service.
After=multi-user.target

[Service]
Type=oneshot
ExecStart=/etc/pboxConfigure.sh
[Install]
WantedBy=multi-user.target

[3] pbox_daemon

$vim wireless_lte.service

[Unit]
Description=Pbox LTE(4G) Daemon Shell
After=multi-user.target configure.service

[Service]
Type=simple
ExecStart=/home/wireless_lte_daemon.sh start
[Install]
WantedBy=multi-user.target

$systemctl enable wireless_lte.service
$vim cora.timer

[Unit]
Description=Runs Pbox Script every 2 min
After=multi-user.target configure.service

[Timer]
OnBootSec=12s OnUnitActiveSec=2min
Unit=wireless_lte.service

[Install]
WantedBy=multi-user.target

$systemctl enable cora.timer
$systemctl start cora.timer

$vim huawei-off.service
[Unit]
Description=Pbox LTE(4G) Shutdown
Before=shutdown.target reboot.target halt.target
DefaultDependencies=no

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/etc/wireless_lte_daemon.sh stop
[Install]
WantedBy=reboot.target

$vim systemctl enable huawei-off.service

About

Linux Shell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages