this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add uninstall command and tool

Invoke as 'make uninstall' in CMake build directory
or run as tools/uninstall

Fixes #590

+26
+4
CMakeLists.txt
··· 113 113 InstallSymlink(/Volumes/SystemRoot/usr/share/zoneinfo ${CMAKE_INSTALL_PREFIX}/libexec/darling/usr/share/zoneinfo) 114 114 115 115 install(CODE "execute_process(COMMAND bash ${DARLING_TOP_DIRECTORY}/tools/shutdown-user.sh)") 116 + 117 + add_custom_target(uninstall 118 + COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/tools/uninstall 119 + COMMENT "Uninstall Darling and kernel module")
+22
tools/uninstall
··· 1 + #!/bin/bash 2 + set +e 3 + 4 + if [ "$(whoami)" != "root" ] 5 + then 6 + echo "Uninstall must be run as root, invoking sudo" 7 + sudo su -c "$0" 8 + exit 9 + fi 10 + 11 + if command -v darling 12 + then 13 + darling shutdown 14 + fi 15 + if [ -d /usr/local/libexec ] 16 + then 17 + rm -rf /usr/local/libexec/darling 18 + rmdir --ignore-fail-on-non-empty /usr/local/libexec 19 + fi 20 + rm -f /usr/local/bin/darling 21 + find /lib/modules -name darling-mach.ko -delete 22 + echo "Uninstall complete"