1 2 3 4 5 6 7 8 9 10
#!/bin/bash if [ "$1" = "remove" ]; then ldconfig fi if [ "$1" = "purge" ]; then update-rc.d vyatta-router remove >/dev/null || exit $? fi