Fixed error in maintenance.sh
[archnosh.git] / maintenance-scripts.patch
blobc6343483d107f236d6bffdd5df62959084831972
1 diff --git a/package/debian/nosh-run-system-manager.postinst b/package/debian/nosh-run-system-manager.postinst
2 index 4176377..5c3d127 100755
3 --- a/package/debian/nosh-run-system-manager.postinst
4 +++ b/package/debian/nosh-run-system-manager.postinst
5 @@ -1,14 +1,7 @@
6 #!/bin/sh -
7 -case "$1" in
8 - configure)
9 - if test -z "$2" # No prior version installed/left configured.
10 - then
11 for i in - -usr -var -home
13 /bin/rm -f -r /etc/service-bundles/services/fsck@$i/
14 /bin/rm -f -r /etc/service-bundles/services/mount@$i/
15 done
16 - fi
17 ( cd /etc/system-control/convert && redo all )
18 - ;;
19 -esac
20 diff --git a/package/debian/nosh-run-via-systemd.postrm b/package/debian/nosh-run-via-systemd.postrm
21 index d73693e..7fb3187 100755
22 --- a/package/debian/nosh-run-via-systemd.postrm
23 +++ b/package/debian/nosh-run-via-systemd.postrm
24 @@ -1,7 +1,4 @@
25 #!/bin/sh -
26 -case "$1" in
27 - # post-deinstall for nosh-run-via-systemd
28 - remove|purge)
29 # Re-apply presets to services that were cut-out by a special preset in this package.
30 system-control preset sysinit.target dbus.socket local-syslog.target
31 system-control preset static-networking.target
32 @@ -10,5 +7,3 @@ case "$1" in
33 system-control preset busybox-mdev.socket busybox-mdev-log.service busybox-mdev-rescan.service
34 system-control preset suckless-mdev.socket suckless-mdev-log.service suckless-mdev-rescan.service
35 system-control preset vdev.socket vdev-log.service
36 - ;;
37 -esac