11 líneas
192 B
Bash
Archivo Ejecutable
11 líneas
192 B
Bash
Archivo Ejecutable
#!/bin/sh
|
|
|
|
INTERFACE=$1 # The interface which is brought up or down
|
|
STATUS=$2 # The new state of the interface
|
|
|
|
case "$STATUS" in
|
|
'up') # $INTERFACE is up
|
|
/usr/bin/pamac-refresh
|
|
;;
|
|
esac
|