a6-rc-up-tree: handle blocked deps, exit 1 if nothing started
This commit is contained in:
@@ -8,6 +8,7 @@ if [ "$1" = "-da" ]; then
|
||||
echo wattle # controlled
|
||||
echo wombat # controlled
|
||||
echo turmeric # uncontrolled
|
||||
test -n "$ATZ" || echo atz # uncontrolled
|
||||
fi
|
||||
fi
|
||||
if [ "$1" = "-u" ]; then
|
||||
|
@@ -9,6 +9,12 @@ reverse_deps(){
|
||||
enables-wan)
|
||||
echo wattle # controlled
|
||||
;;
|
||||
modeswitch)
|
||||
reverse_deps atz
|
||||
;;
|
||||
atz)
|
||||
echo ifconfig
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
@@ -17,8 +23,12 @@ deps(){
|
||||
case "$1" in
|
||||
rosemary)
|
||||
echo thyme;;
|
||||
*)
|
||||
;;
|
||||
wattle)
|
||||
echo enables-wan;;
|
||||
atz)
|
||||
echo modeswitch;;
|
||||
ifconfig)
|
||||
deps atz;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user