git » kicad-library.git » main » tree

[main] / kicad-library.install

post_install() {
  systemctl preset usr-share-kicad-symbols.mount
  systemctl preset usr-share-kicad-footprints.mount
}

pre_upgrade() {
  [ -d /run/systemd/system ] && systemctl stop usr-share-kicad-symbols.mount || true
  [ -d /run/systemd/system ] && systemctl stop usr-share-kicad-footprints.mount || true
}

post_upgrade() {
  [ -d /run/systemd/system ] && systemctl daemon-reload || true
  [ -d /run/systemd/system ] && systemctl start usr-share-kicad-symbols.mount || true
  [ -d /run/systemd/system ] && systemctl start usr-share-kicad-footprints.mount || true
}

pre_remove() {
  [ -d /run/systemd/system ] && systemctl stop usr-share-kicad-symbols.mount || true
  [ -d /run/systemd/system ] && systemctl stop usr-share-kicad-footprints.mount || true
  systemctl disable usr-share-kicad-symbols.mount
  systemctl disable usr-share-kicad-footprints.mount
}