summaryrefslogtreecommitdiffstats
path: root/rescue/restore-image-lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rescue/restore-image-lib.sh')
-rwxr-xr-xrescue/restore-image-lib.sh80
1 files changed, 0 insertions, 80 deletions
diff --git a/rescue/restore-image-lib.sh b/rescue/restore-image-lib.sh
deleted file mode 100755
index 3451f7be5..000000000
--- a/rescue/restore-image-lib.sh
+++ /dev/null
@@ -1,80 +0,0 @@
-#!/bin/bash
-
-TITLE="%s Installer"
-BACKTITLE="%s"
-MIN_DISKSIZE=5000000
-
-debug="/dev/null"
-
-function _msgbox()
-{
- dialog --timeout 60 --backtitle "$BACKTITLE" --title "$TITLE" --msgbox \
- "$1" 0 0
-
- return $?
-}
-
-function _infobox()
-{
- dialog --backtitle "$BACKTITLE" --title "$TITLE" --sleep 2 \
- --infobox "$1" 0 0
-
- return $?
-}
-
-function _yesno()
-{
- dialog --backtitle "$BACKTITLE" --title "$TITLE" \
- --yes-label "Yes" --no-label "No" --yesno "$1" 0 0
-
- return $?
-}
-
-function _mount()
-{
- mount $1 $2 > $debug 2>&1
-
- return $?
-}
-
-function _umount()
-{
- umount $1 > $debug 2>&1
-
- return $?
-}
-
-function _bind()
-{
- mount --bind $1 $2 > $debug 2>&1
-
- return $?
-}
-
-function _eject()
-{
- eject $1 > $debug 2>&1
-
- return $?
-}
-
-function _shutdown()
-{
- [ -e /tmp/no-shutdown ] && exit
- clear
- sync
- echo s > /proc/sysrq-trigger
- echo o > /proc/sysrq-trigger
- exit
-}
-
-function _reboot()
-{
- [ -e /tmp/no-shutdown ] && exit
- clear
- sync
- echo s > /proc/sysrq-trigger
- echo b > /proc/sysrq-trigger
- exit
-}
-