diff options
Diffstat (limited to 'debian/progress-linux.config')
-rwxr-xr-x | debian/progress-linux.config | 70 |
1 files changed, 42 insertions, 28 deletions
diff --git a/debian/progress-linux.config b/debian/progress-linux.config index a3e55e3..4532d78 100755 --- a/debian/progress-linux.config +++ b/debian/progress-linux.config @@ -36,33 +36,47 @@ Run_debconf () DEBIAN_VERSION="$(cat /etc/debian_version)" PROGRESS_LINUX_VERSION="$(if [ -e /etc/progress-linux_version ]; then cat /etc/progress-linux_version; fi)" -case "${DEBIAN_VERSION}" in - 10.*|buster/sid) - RELEASE="5" - CODENAME="engywuck" - - Run_debconf - ;; - - 11.*|bullseye/sid) - case "${PROGRESS_LINUX_VERSION}" in - 5*) - RELEASE="5" - CODENAME="engywuck" - ;; - - *) - RELEASE="6" - CODENAME="fuchur" - ;; - esac - - Run_debconf - ;; - - *) - echo "W: unsupported debian release" - ;; -esac +if [ -n "${PROGRESS_LINUX_VERSION}" ] +then + case "${PROGRESS_LINUX_VERSION}" in + 5*) + RELEASE="5" + CODENAME="engywuck" + + Run_debconf + ;; + + 6*) + RELEASE="6" + CODENAME="fuchur" + + Run_debconf + ;; + + *) + echo "W: unsupported debian release" + ;; + esac +else + case "${DEBIAN_VERSION}" in + 10.*|buster/sid) + RELEASE="5" + CODENAME="engywuck" + + Run_debconf + ;; + + 11.*|bullseye/sid) + RELEASE="6" + CODENAME="fuchur" + + Run_debconf + ;; + + *) + echo "W: unsupported debian release" + ;; + esac +fi db_stop |