mirror of
https://github.com/systemd/systemd.git
synced 2025-02-25 21:57:32 +03:00
test: drop Exec* prefixes to obtain paths of executables
This commit is contained in:
parent
53d133ea1b
commit
5ed0dcf4d5
@ -752,7 +752,7 @@ DNS=192.168.5.1
|
||||
EOF
|
||||
|
||||
# run networkd as in systemd-networkd.service
|
||||
exec $(systemctl cat systemd-networkd.service | sed -n '/^ExecStart=/ { s/^.*=//; p}')
|
||||
exec $(systemctl cat systemd-networkd.service | sed -n '/^ExecStart=/ { s/^.*=//; s/^[@+-]//; s/^!*//; p}')
|
||||
''' % {'ifr': self.if_router, 'ifc': self.iface, 'addr6': ipv6 and 'Address=2600::1/64' or '',
|
||||
'dhopts': dhcpserver_opts or ''})
|
||||
|
||||
|
@ -426,7 +426,7 @@ install_execs() {
|
||||
systemduserunitdir=$(pkg-config --variable=systemduserunitdir systemd)
|
||||
egrep -ho '^Exec[^ ]*=[^ ]+' $initdir/{$systemdsystemunitdir,$systemduserunitdir}/*.service \
|
||||
| while read i; do
|
||||
i=${i##Exec*=}; i=${i##-}
|
||||
i=${i##Exec*=}; i=${i##[@+\!-]}; i=${i##\!}
|
||||
# some {rc,halt}.local scripts and programs are okay to not exist, the rest should
|
||||
inst $i || [ "${i%.local}" != "$i" ] || [ "${i%systemd-update-done}" != "$i" ]
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user