annotate shells/dash/dash-post.sh @ 1287:8c73c712e598

core/procps: upgrad to 3.3.17
author David Demelier <markand@malikania.fr>
date Tue, 16 Nov 2021 14:49:07 +0100
parents 6ac8b545df56
children 9867e578b1a9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1115
297b5eef115e vanilla: change shebangs to /bin/sh
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
1 #!/bin/sh
398
89ac6810e2ee shells/dash: initial import, closes #1486
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
89ac6810e2ee shells/dash: initial import, closes #1486
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
89ac6810e2ee shells/dash: initial import, closes #1486
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
89ac6810e2ee shells/dash: initial import, closes #1486
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
89ac6810e2ee shells/dash: initial import, closes #1486
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
89ac6810e2ee shells/dash: initial import, closes #1486
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
89ac6810e2ee shells/dash: initial import, closes #1486
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
89ac6810e2ee shells/dash: initial import, closes #1486
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
89ac6810e2ee shells/dash: initial import, closes #1486
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
89ac6810e2ee shells/dash: initial import, closes #1486
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
89ac6810e2ee shells/dash: initial import, closes #1486
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
89ac6810e2ee shells/dash: initial import, closes #1486
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
89ac6810e2ee shells/dash: initial import, closes #1486
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
89ac6810e2ee shells/dash: initial import, closes #1486
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
89ac6810e2ee shells/dash: initial import, closes #1486
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
89ac6810e2ee shells/dash: initial import, closes #1486
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
709
263453ab2372 vanilla: add busybox post script for every packages
David Demelier <markand@malikania.fr>
parents: 567
diff changeset
18 if [ "$1" = "post-install" ]; then
1185
6ac8b545df56 vanilla: use busybox add-shell/remove-shell for post scripts
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
19 /bin/busybox add-shell /bin/dash
709
263453ab2372 vanilla: add busybox post script for every packages
David Demelier <markand@malikania.fr>
parents: 567
diff changeset
20 elif [ "$1" = "post-uninstall" ]; then
1185
6ac8b545df56 vanilla: use busybox add-shell/remove-shell for post scripts
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
21 /bin/busybox remove-shell /bin/dash
398
89ac6810e2ee shells/dash: initial import, closes #1486
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 fi