summarylogtreecommitdiffstats
path: root/network-wait-online.install
blob: dc46eb937f25369b0ea72d172e1d07e8144eb8e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

## arg 1:  the new package version
post_install() {
    post_upgrade $1 0
}


## arg 1:  the new package version
## arg 2:  the old package version
post_upgrade() {
    echo ""
    echo "To enable the service provided by this package, you need to run:"
    echo "=> systemctl enable network-wait-online@address-to-wait.service"
    echo "where 'address-to-wait' can be an IP or a domain..."
    echo ""
    echo "If the defaults options do not fit your need (timeout, method to wait...), "
    echo "or if the service used to connect to the network is not dhcpcd@.service: "
    echo "=> copy the service to '/etc/systemd/system/', "
    echo "add desired options to the ExecStart= line, and changed the After= line."
    echo "List of options can be provided by running: 'network-wait-online -h'"
    echo ""
}