remove 774 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. # The End
  3. sudo yunohost service stop ynh-hotspot
  4. sudo yunohost service remove ynh-hotspot
  5. sudo rm -f /etc/init.d/ynh-hotspot
  6. # Remove confs
  7. sudo rm -f /etc/hostapd/hostapd.conf{.tpl,} /etc/radvd.conf{.tpl,} /etc/dhcp/dhcpd.conf{.tpl,}
  8. # Restart vpnclient service if installed to set the IPv6 address
  9. # A new start will fix the address without unsetting all stuff
  10. sudo yunohost app list -f vpnclient --json | grep -q '"installed": true'
  11. if [ "$?" -eq 0 ]; then
  12. sudo yunohost service start ynh-vpnclient
  13. fi
  14. # Remove packets
  15. # The yunohost policy is currently to not uninstall packets (dependency problems)
  16. ## sudo apt-get --assume-yes --force-yes remove hostapd radvd isc-dhcp-server iptables
  17. ## sudo apt-get --assume-yes --force-yes remove sipcalc
  18. exit 0