mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
26 lines
457 B
Bash
26 lines
457 B
Bash
#!/bin/sh
|
|
#
|
|
# ifplugd.action script for Arch Linux
|
|
|
|
. /etc/rc.conf
|
|
. /etc/rc.d/functions
|
|
|
|
case "$2" in
|
|
up)
|
|
/etc/rc.d/network ifup $1
|
|
# ugly way to load up gateway, since
|
|
# al's net configuration doesn't associate
|
|
# gateways with specific interfaces
|
|
/sbin/route add $gateway
|
|
;;
|
|
down)
|
|
/etc/rc.d/network ifdown $1
|
|
# same as up...
|
|
/sbin/route del $1
|
|
;;
|
|
*)
|
|
echo "Wrong arguments" > /dev/stderr
|
|
;;
|
|
esac
|
|
|
|
exit 1
|