Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
netctl
Commits
99bac267
Commit
99bac267
authored
Mar 02, 2017
by
Jouke Witteveen
Browse files
Move from /usr/lib/network to /usr/lib/netctl
parent
31b95461
Changes
15
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
99bac267
...
...
@@ -15,11 +15,11 @@ install:
install
-d
$(DESTDIR)
/etc/netctl/
{
examples,hooks,interfaces
}
install
-m644
docs/examples/
*
$(DESTDIR)
/etc/netctl/examples/
# Libs
install
-d
$(DESTDIR)
/usr/lib/net
work
/
{
connections,dhcp
}
install
-m644
src/lib/
{
globals,ip,rfkill,wpa
}
$(DESTDIR)
/usr/lib/net
work
/
install
-m644
src/lib/connections/
*
$(DESTDIR)
/usr/lib/net
work
/connections/
install
-m644
src/lib/dhcp/
*
$(DESTDIR)
/usr/lib/net
work
/dhcp/
install
-m755
src/lib/
{
auto.action,network
}
$(DESTDIR)
/usr/lib/net
work
/
install
-d
$(DESTDIR)
/usr/lib/net
ctl
/
{
connections,dhcp
}
install
-m644
src/lib/
{
globals,ip,rfkill,wpa
}
$(DESTDIR)
/usr/lib/net
ctl
/
install
-m644
src/lib/connections/
*
$(DESTDIR)
/usr/lib/net
ctl
/connections/
install
-m644
src/lib/dhcp/
*
$(DESTDIR)
/usr/lib/net
ctl
/dhcp/
install
-m755
src/lib/
{
auto.action,network
}
$(DESTDIR)
/usr/lib/net
ctl
/
# Scripts
install
-d
$(DESTDIR)
/usr/bin
sed
-e
"s|@systemdsystemconfdir@|
$(systemdsystemconfdir)
|g"
\
...
...
services/netctl-wait-online.service
View file @
99bac267
...
...
@@ -7,7 +7,7 @@ Before=network-online.target
[Service]
Type
=
oneshot
RemainAfterExit
=
yes
ExecStart
=
/usr/lib/net
work
/network wait-online
ExecStart
=
/usr/lib/net
ctl
/network wait-online
[Install]
WantedBy
=
network-online.target
services/netctl@.service
View file @
99bac267
...
...
@@ -9,5 +9,5 @@ Wants=network.target
Type
=
notify
NotifyAccess
=
exec
RemainAfterExit
=
yes
ExecStart
=
/usr/lib/net
work
/network start %I
ExecStop
=
/usr/lib/net
work
/network stop %I
ExecStart
=
/usr/lib/net
ctl
/network start %I
ExecStop
=
/usr/lib/net
ctl
/network stop %I
src/ifplugd.action
View file @
99bac267
...
...
@@ -2,7 +2,7 @@
#
# ifplugd.action script for netctl
.
/usr/lib/net
work
/globals
.
/usr/lib/net
ctl
/globals
PROFILE_FILE
=
"
$STATE_DIR
/ifplugd-
$1
.profile"
...
...
src/lib/auto.action
View file @
99bac267
#! /bin/bash
.
/usr/lib/net
work
/globals
.
/usr/lib/net
ctl
/globals
.
"
$SUBR_DIR
/ip"
export
INTERFACE
=
"
$1
"
...
...
src/lib/connections/README
View file @
99bac267
Support for connection types is implemented by connection files in
/usr/lib/net
work
/connections/
/usr/lib/net
ctl
/connections/
The file name determines the name of the connection type, so support
for the aviancarrier connection type will be provided by the file:
/usr/lib/net
work
/connections/aviancarrier
/usr/lib/net
ctl
/connections/aviancarrier
Files that implement support for a connection type should NOT be
executable. Such files should contain valid Bash code, among which two
...
...
@@ -20,8 +20,8 @@ respectively. When the functions are called, three bash files are
already sourced, so all functions and variables in those files are
available. The readily sourced files are:
/usr/lib/net
work
/network
/usr/lib/net
work
/globals
/usr/lib/net
ctl
/network
/usr/lib/net
ctl
/globals
/etc/netctl/<profile>
Here, <profile> is the profile file specifying the desired network
...
...
src/lib/dhcp/README
View file @
99bac267
Support for dhcp clients is implemented by files in
/usr/lib/net
work
/dhcp/
/usr/lib/net
ctl
/dhcp/
The file name determines the name of the client for the profile, so
support for a client named dhcpcd is provided by the file:
/usr/lib/net
work
/dhcp/dhcpcd
/usr/lib/net
ctl
/dhcp/dhcpcd
Files that implement support for a connection type should NOT be
executable. Such files should contain valid Bash code, among which two
...
...
@@ -20,8 +20,8 @@ client. When the functions are called, three bash files are already
sourced, so all functions and variables in those files are available.
The readily sourced files are:
/usr/lib/net
work
/network
/usr/lib/net
work
/globals
/usr/lib/net
ctl
/network
/usr/lib/net
ctl
/globals
/etc/netctl/<profile>
Here, <profile> is the profile file specifying the desired network
...
...
src/lib/globals
View file @
99bac267
NETCTL_VERSION
=
"notpackaged"
PROFILE_DIR
=
"/etc/netctl"
SUBR_DIR
=
"/usr/lib/net
work
"
STATE_DIR
=
"/run/net
work
"
SUBR_DIR
=
"/usr/lib/net
ctl
"
STATE_DIR
=
"/run/net
ctl
"
STATE_FILE
=
"
${
NETCTL_STATE_FILE
:-
/var/lib/netctl/netctl.state
}
"
...
...
src/lib/ip
View file @
99bac267
## /usr/lib/net
work
/globals needs to be sourced before this file
## /usr/lib/net
ctl
/globals needs to be sourced before this file
## Interface a DHCP client
...
...
src/lib/network
View file @
99bac267
#! /bin/bash
.
/usr/lib/net
work
/globals
.
/usr/lib/net
ctl
/globals
## Check if a string represents a network interface
...
...
src/lib/rfkill
View file @
99bac267
## /usr/lib/net
work
/globals needs to be sourced before this file
## /usr/lib/net
ctl
/globals needs to be sourced before this file
## Determine the system interface of an rfkill device
...
...
src/lib/wpa
View file @
99bac267
## /usr/lib/net
work
/globals needs to be sourced before this file
## /usr/lib/net
ctl
/globals needs to be sourced before this file
## Wrapper around wpa_cli to deal with supplicant configurations that set a
...
...
src/netctl-auto
View file @
99bac267
#! /bin/bash
# Contributed by: Sebastian Wicki <gandro@gmx.net>
.
/usr/lib/net
work
/globals
.
/usr/lib/net
ctl
/globals
.
"
$SUBR_DIR
/wpa"
.
"
$SUBR_DIR
/rfkill"
...
...
src/netctl.in
View file @
99bac267
#! /bin/bash
.
/usr/lib/net
work
/globals
.
/usr/lib/net
ctl
/globals
usage
()
{
...
...
src/wifi-menu
View file @
99bac267
#! /bin/bash
.
/usr/lib/net
work
/globals
.
/usr/lib/net
ctl
/globals
.
"
$SUBR_DIR
/wpa"
.
"
$SUBR_DIR
/rfkill"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment