1
0
mirror of https://github.com/gryf/wicd.git synced 2026-02-02 14:15:47 +01:00

Added entry points for autoconnect and suspend.

Moved scripts to data directory.
This commit is contained in:
2020-08-31 21:53:43 +02:00
parent e6afb9232d
commit 780ded6802
7 changed files with 20 additions and 10 deletions

View File

@@ -400,10 +400,10 @@ class install(_install.install):
# TODO(gryf): sort out paths for pmutils/acpi
if not wpath.no_install_acpi:
data.append((wpath.resume, ['other/80-wicd-connect.sh']))
data.append((wpath.suspend, ['other/50-wicd-suspend.sh']))
data.append((wpath.resume, ['data/acpi/80-wicd-connect.sh']))
data.append((wpath.suspend, ['data/acpi/50-wicd-suspend.sh']))
if not wpath.no_install_pmutils:
data.append((wpath.pmutils, ['other/55wicd']))
data.append((wpath.pmutils, ['data/pmutils/55wicd']))
log.info('Using pid path %s', os.path.basename(wpath.pidfile))
@@ -416,7 +416,7 @@ class install(_install.install):
'LC_MESSAGES', 'wicd.mo')]))
for dir_ in (os.listdir('data')):
if dir_ == 'init':
if dir_ in ('init', 'acpi', 'pmutils'):
continue
path = os.path.join('data', dir_)
for fname in os.listdir(path):