Skip to content
Browse files

This script was fixed upstream in Porteus v1.1

Originally this was added to correct a bashism in the Porteus v1.0
version of the script, but now that it's fixed upstream there is not
reason to keep this file in the repository.

Relates to issue #79
  • Loading branch information...
1 parent 066ea05 commit 69c69685d8a32203f563f85e975cc12ca78c82eb @Sitwon Sitwon committed
Showing with 0 additions and 55 deletions.
  1. +0 −55 scripts/chkbase.sh
View
55 scripts/chkbase.sh
@@ -1,55 +0,0 @@
-#!/bin/bash
-# script by fanthom
-
-# Variables
-md5=`which md5sum`
-out=/tmp/md5sums.txt$$
-c='\e[36m'
-r='\e[31m'
-e=`tput sgr0`
-
-# Let's start
-if [ "$md5" = "" ]; then
- echo -e "${r}md5sum utility is missing - can't perform md5sum check, exiting..."$e | fmt -w 80
- exit
-fi
-
-echo && echo -e "${c}Checking md5sums - wait a while..."$e
-for x in `find ../boot/initrd.xz` `find ../boot/vmlinuz`; do
- md5sum $x >> $out
-done
-
-for x in `find ./base/* | sort`; do
- if [ ! -d $x ]; then
- md5sum $x >> $out
- fi
-done
-
-echo
-num=`grep -c / md5sums.txt`; x=1
-while [ $x -le $num ]; do
- file=`awk NR==$x md5sums.txt | cut -d " " -f2-`
- first=`awk NR==$x md5sums.txt | cut -d " " -f1`
- second=`grep $file $out | cut -d " " -f1`
- if [ "$first" = "$second" ];then
- echo -e "checking md5sum for $file ${c}ok"$e
- else
- echo -e "checking md5sum for $file ${r}fail!"$e
- fail="yes"
- fi
- x=$(($x+1))
-done
-rm $out
-
-echo
-if [ "$fail" ]; then
-echo -e "${r}Some md5sums doesn't match or some files from default ISO are missing, please check above..."$e | fmt -w 80
-echo -e "${r}Be aware that vmlinuz, initrd.xz, 000-kernel.xzm and 001-core.xzm are most important and booting wont be possible when they are missing."$e | fmt -w 80
-
-else
- echo -e "${c}All md5sums are ok, you should have no problems with booting Porteus!"$e | fmt -w 80
-fi
-
-echo -e "${c}Press enter to continue or ctrl+c to exit"$e
-read junk
-

0 comments on commit 69c6968

Please sign in to comment.
Something went wrong with that request. Please try again.