#!/bin/sh #---------------------------------------------------------------------------- # /var/install/deinstall/linux-source-4.9.248 - deinstall script # # Creation : 2021-01-06 dv # Last update: 2021-01-12 17:36:35 dv # # Copyright (c) 2019-2021 the eisfair team, team(at)eisfar(dot)org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- . /var/install/include/eislib kernel_version="4.9.248" # clean up source directory if present if [ -d "/usr/src/linux-${kernel_version}-eisfair" ] then rm -rf "/usr/src/linux-${kernel_version}-eisfair" rm -f /usr/src/linux next_source_package="$(ls /usr/src/linux-*-eisfair* | sort -rV | head -1)" if [ -n "${next_source_package}" ] then ln -s "${next_source_package}" /usr/src/linux fi fi