diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2012-03-04 12:22:18 +0100 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2012-03-04 12:22:18 +0100 |
commit | 20f45928eaf72ed5413c0ac0c6e30bb771c03a5f (patch) | |
tree | 19e12fd9f6c66f368584ca084df2fa9ec6ac9a90 /src/connections | |
parent | 5e7df6ce79c6d7217d583d45b858f958f7a2e600 (diff) | |
download | netctl-20f45928eaf72ed5413c0ac0c6e30bb771c03a5f.tar.gz netctl-20f45928eaf72ed5413c0ac0c6e30bb771c03a5f.tar.xz |
Remove cat-subshells (cosmetic)
The use of cat in a subshell is distractive.
This makes the code more beautiful.
Diffstat (limited to 'src/connections')
-rw-r--r-- | src/connections/ethernet | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet index 8665816..3e4a992 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -230,8 +230,8 @@ ethernet_down() { report_debug ethernet_down dhclient -q -r "$INTERFACE" dhclient -q -x "$INTERFACE" &>/dev/null #dhclient -q -r "$INTERFACE" &>/dev/null - report_debug ethernet_down /bin/kill $(cat /run/dhclient-$INTERFACE.pid) - /bin/kill $(cat /run/dhclient-$INTERFACE.pid) &>/dev/null + report_debug ethernet_down /bin/kill $(< /run/dhclient-$INTERFACE.pid) + /bin/kill $(< /run/dhclient-$INTERFACE.pid) &>/dev/null fi else if [[ -f "/run/dhcpcd-$INTERFACE.pid" ]]; then @@ -244,8 +244,8 @@ ethernet_down() { if [[ -f "/run/dhclient6-$INTERFACE.pid" ]]; then report_debug ethernet_down dhclient -6 -q -x "$INTERFACE" dhclient -6 -q -x "$INTERFACE" &>/dev/null - report_debug ethernet_down /bin/kill $(cat /run/dhclient6-$INTERFACE.pid) - /bin/kill $(cat /run/dhclient6-$INTERFACE.pid) &>/dev/null + report_debug ethernet_down /bin/kill $(< /run/dhclient6-$INTERFACE.pid) + /bin/kill $(< /run/dhclient6-$INTERFACE.pid) &>/dev/null fi fi |