From 4e0e3f5fafe99970756a37ad7da742d3c37b6cec Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 20 Dec 2020 13:58:01 +0100 Subject: [PATCH] postplug.d/12loadconf: remove old script --- postplug.d/12loadconf | 52 ------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 postplug.d/12loadconf diff --git a/postplug.d/12loadconf b/postplug.d/12loadconf deleted file mode 100644 index 2049e98..0000000 --- a/postplug.d/12loadconf +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash -# -# loadconf - postplug plugin: restore the QiLinux Live system/user configuration -# Copyright (c) 2004-2017 by Davide Madrisan - -if [ $UID != 0 ]; then - echo "$0: must be superuser." >&2 - exit 1 -fi - -# FIXME: add translation - -me="loadconf" - -. /etc/postplug/postplug.defs - -#qitarget="$(LANG=C cat /etc/qilinux-release | -# sed "s,[ ]*release.*,,;s, ,-,")" -#qiver="$(LANG=C cat /etc/qilinux-release | -# sed "s,.*release[ ]*\([^ ]*\)[ ]*for.*,\1,")" -#qiconf="$qitarget-$qiver-saveconf.tar.bz2" - -qiconf="QiLinux-live-saveconf.tar.bz2" - -grep "^/" /etc/fstab | \ -while read dev mountpoint skip; do - case "$mountpoint" in - /mnt/cdrom*|swap) ;; - *) mount | grep "$dev" &>/dev/null - let "res = $?" # 0: mounted; 1: not mounted - [ "$res" = 1 ] && mount $mountpoint >&2 - if [ -e $mountpoint/$qiconf ]; then - # temporary disable bootsplash - [ -w /proc/splash ] && echo "verbose" > /proc/splash - - $DIALOG --clear --colors \ - --backtitle "\ -$dialog_backtitle -- "$"Restore QiLinux configuration" \ - --title $" RESTORE QILINUX CONFIGURATION " \ - --yesno " -"$"Do you want to restore the configuration saved on "" -""\Z4$dev\Zn ?" 8 56 - - if [ $? -eq 0 ]; then - /usr/sbin/livecd-restore $mountpoint - [ "$res" = 1 ] && umount $mountpoint >&2 - break - fi - fi - [ "$res" = 1 ] && umount $mountpoint >&2 ;; - esac -done