init from svn
This commit is contained in:
11
scripts/ac.service
Executable file
11
scripts/ac.service
Executable file
@@ -0,0 +1,11 @@
|
||||
[Service]
|
||||
Type=idle
|
||||
Environment=GOTRACEBACK=crash
|
||||
ExecStart=/usr/local/bin/ac
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
StartLimitInterval=0
|
||||
StandardOutput=null
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
10
scripts/control
Normal file
10
scripts/control
Normal file
@@ -0,0 +1,10 @@
|
||||
Package: ac
|
||||
Version: 2.2409.0
|
||||
Section: net
|
||||
Priority: optional
|
||||
Architecture: amd64
|
||||
Essential: no
|
||||
Depends:
|
||||
Conflicts: ac
|
||||
Maintainer: AC maintainer
|
||||
Description: WLAN Software
|
||||
15
scripts/postinst
Executable file
15
scripts/postinst
Executable file
@@ -0,0 +1,15 @@
|
||||
#! /bin/bash
|
||||
|
||||
service_name=ac
|
||||
|
||||
test ! -f /usr/local/etc/ac/ac.yaml && cp -f /usr/local/etc/ac/default/ac.yaml /usr/local/etc/ac
|
||||
|
||||
if test -x /sbin/ldconfig
|
||||
then
|
||||
/sbin/ldconfig
|
||||
else
|
||||
echo Cannot run /sbin/ldconfig
|
||||
fi
|
||||
|
||||
systemctl enable $service_name
|
||||
|
||||
7
scripts/prerm
Executable file
7
scripts/prerm
Executable file
@@ -0,0 +1,7 @@
|
||||
#! /bin/bash
|
||||
|
||||
# Commands to be run before uninstall of the package
|
||||
|
||||
service_name=ac
|
||||
|
||||
systemctl disable $service_name
|
||||
Reference in New Issue
Block a user