diff --git a/add-new-package b/add-new-package deleted file mode 100644 index b8c4fcc..0000000 --- a/add-new-package +++ /dev/null @@ -1,3 +0,0 @@ -/root/scripts/add-links "$1" -/root/scripts/rekursivperms "$1" -chown -R .util "$1" diff --git a/add.wddb-to-fsdb b/add.wddb-to-fsdb deleted file mode 100755 index ce8a5f5..0000000 --- a/add.wddb-to-fsdb +++ /dev/null @@ -1,80 +0,0 @@ -BASEDIR=/home/server/www/org/wddb/www/ -tmp=/tmp/wddb-$$ - -function report() -{ - # sender - UFLINE - - # return path - RPLINE - - # we - RECIPIENT - - # delivered to.. - DTLINE - # set -} - -function init() -{ - cat > $tmp - - -} - -# continent -continent=`grep "^continent" "$1" | sed 's/.*="\(.*\)"/\1/'` - -case "$continent" in - africa|asia|australia|europe|northamerica|southamerica) ;; - *) report "Allowed continents: africa|asia|australia|europe|northamerica|southamerica" ;; -esac - -# other vars -essid=`grep "^essid" "$1" | sed 's/.*="\(.*\)"/\1/'` - -# remove possible dots -country=`grep "^country" "$1" | sed 's/.*="\(.*\)"/\1/' | sed 's/\.\.//g'` -area=`grep "^area" "$1" | sed 's/.*="\(.*\)"/\1/' | sed 's/\//-/g' | sed 's/ //c'` -mac=`grep "^mac" "$1" | sed 's/.*="\(.*\)"/\1/'` -rate=`grep "^rate" "$1" | sed 's/.*="\(.*\)"/\1/'` -wep=`grep "^wep" "$1" | sed 's/.*="\(.*\)"/\1/'` -hints=`grep "^hints" "$1" | sed 's/.*="\(.*\)"/\1/'` -location=`grep "^location" "$1" | sed 's/.*="\(.*\)"/\1/'` - -# check for empty fields -for a in essid country area mac rate wep hints location; do - eval tmp="\$$a" - if [ -z "$tmp" ]; then - report "Empty field: $a" - fi -done - -if [ ! -f $BASEDIR/$continent/$country/$area.html ]; then - cat << EOF > "$1" - -
-Submit new network or changes -
- - -EOF diff --git a/add_usb_storage b/add_usb_storage deleted file mode 100644 index 4f64f02..0000000 --- a/add_usb_storage +++ /dev/null @@ -1,3 +0,0 @@ -modprobe usb-storage -modprobe ohci-hcd -modprobe sd_mod diff --git a/attach b/attach deleted file mode 100755 index 3f101b2..0000000 --- a/attach +++ /dev/null @@ -1,153 +0,0 @@ -#!/usr/bin/perl -wT -# -# TWiki Collaboration Platform, http://TWiki.org/ -# -# Copyright (C) 1999-2003 Peter Thoeny, peter@thoeny.com -# -# For licensing info read license.txt file in the TWiki root. -# 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details, published at -# http://www.gnu.org/copyleft/gpl.html - -# Set library paths in @INC, at compile time -BEGIN { unshift @INC, '.'; require 'setlib.cfg'; } - -use CGI::Carp qw( fatalsToBrowser ); -use CGI; -use TWiki; - -use strict; - -#open(STDERR,'>&STDOUT'); # redirect error to browser -$| = 1; # no buffering - -&main(); - - -# ========================= -sub listVersions -{ - my( $web, $topic, $attachment ) = @_; - - my $latestRev = TWiki::Store::getRevisionNumber( $web, $topic, $attachment ); - $latestRev =~ /\.(.*)/; - my $maxRevNum = $1; - - my $found = 0; - - my $result = "\n| *Version:* | *Action:* | *Date:* | *Who:* | *Comment:* |\n"; - - for( my $version = $maxRevNum; $version >= 1; $version-- ) { - - my $rev = "1.$version"; - - my( $date, $userName, $dummy, $comment ) = - TWiki::Store::getRevisionInfo( $web, $topic, $rev, "TWiki date", $attachment ); - my $wikiUserName = &TWiki::userToWikiName( $userName ); - - my $viewAction = "view"; - $result .= "| 1.$version | $viewAction | $date | $wikiUserName | $comment |\n"; - } - - $result = "$result"; - return $result; -} - - -# ========================= -sub main -{ - my $query = new CGI; - my $thePathInfo = $query->path_info(); - my $theRemoteUser = $query->remote_user(); - my $theTopic = $query->param( 'topic' ); - my $theUrl = $query->url; - - my( $topic, $webName, $dummy, $userName ) = - &TWiki::initialize( $thePathInfo, $theRemoteUser, $theTopic, $theUrl, $query ); - $dummy = ""; # to suppress warning - - my $tmpl = ""; - my $text = ""; - my $meta = ""; - my $atext = ""; - my $fileName = ""; - my $fileUser = ""; - my $wikiUserName = &TWiki::userToWikiName( $userName ); - - my $isHideChecked = ""; - - if( ! &TWiki::Store::webExists( $webName ) ) { - my $url = &TWiki::getOopsUrl( $webName, $topic, "oopsnoweb" ); - TWiki::redirect( $query, $url ); - return; - } - - my( $mirrorSiteName, $mirrorViewURL ) = &TWiki::readOnlyMirrorWeb( $webName ); - if( $mirrorSiteName ) { - my $url = &TWiki::getOopsUrl( $webName, $topic, "oopsmirror", $mirrorSiteName, $mirrorViewURL ); - TWiki::redirect( $query, $url ); - return; - } - - # check access permission - if( ! &TWiki::Access::checkAccessPermission( "change", $wikiUserName, "", $topic, $webName ) ) { - my $url = &TWiki::getOopsUrl( $webName, $topic, "oopsaccesschange" ); - TWiki::redirect( $query, $url ); - return; - } - - $fileName = $query->param( 'filename' ) || ""; - - if( &TWiki::Store::topicExists( $webName, $topic ) ) { - ( $meta, $text ) = &TWiki::Store::readTopic( $webName, $topic ); - } - - my %args = $meta->findOne( "FILEATTACHMENT", $fileName ); - %args = ( "attr" => "", "path" => "", "comment" => "" ) if( ! % args ); - - if ( $args{"attr"} =~ /h/o ) { - $isHideChecked = "checked"; - } - - if ( $fileName ) { - $atext = listVersions( $webName, $topic, $fileName ); - } - - # why log attach before post is called? - # FIXME: Move down, log only if successful (or with error msg?) - # Attach is a read function, only has potential for a change - if( $TWiki::doLogTopicAttach ) { - # write log entry - &TWiki::Store::writeLog( "attach", "$webName.$topic", $fileName ); - } - - my $fileWikiUser = ""; - my $skin = $query->param( "skin" ) || TWiki::Prefs::getPreferencesValue( "SKIN" ); - if( $fileName && %args ) { - $tmpl = TWiki::Store::readTemplate( "attachagain", $skin ); - $fileWikiUser = &TWiki::userToWikiName( $args{"user"} ); - } else { - $tmpl = TWiki::Store::readTemplate( "attachnew", $skin ); - } - $tmpl =~ s/%ATTACHTABLE%/$atext/go; - $tmpl =~ s/%FILEUSER%/$fileWikiUser/go; - $tmpl = &TWiki::handleCommonTags( $tmpl, $topic ); - $tmpl = &TWiki::getRenderedVersion( $tmpl ); - $tmpl = &TWiki::handleMetaTags( $webName, $topic, $tmpl, $meta ); - $tmpl =~ s/%HIDEFILE%/$isHideChecked/go; - $tmpl =~ s/%FILENAME%/$fileName/go; - $tmpl =~ s/%FILEPATH%/$args{"path"}/go; - $tmpl =~ s/%FILECOMMENT%/$args{"comment"}/go; - TWiki::writeHeader( $query ); - print $tmpl; -} - -# EOF diff --git a/backup.to.eiche b/backup.to.eiche deleted file mode 100755 index 145dcf3..0000000 --- a/backup.to.eiche +++ /dev/null @@ -1,10 +0,0 @@ -HOST=eiche -DESTDIR=/mnt/datennirvana/backup/bruehe -EXCLUDE_FILE=/root/.backup-exclude - -#time rsync -e ssh -av --exclude-from=/root/.backup-exclude / 192.168.23.33:/mnt/backup/bruehe - -time rsync -e ssh -av --exclude-from=$EXCLUDE_FILE / "$HOST":"$DESTDIR" - -#echo "Shutting down $HOST..." -#ssh $HOST "shutdown -h now" diff --git a/backup_to_eiche.nfs b/backup_to_eiche.nfs deleted file mode 100644 index 28f747d..0000000 --- a/backup_to_eiche.nfs +++ /dev/null @@ -1,18 +0,0 @@ -NEWROOT=/mnt/eiche -DATA_DIRS="bin boot etc home lib opt root sbin tmp usr var" -SCRIPTS="/root/scripts/to_eiche" - -# display how long we backup -date -for script in $SCRIPTS; do - $script -done - -# create empty dirs -mkdir -p $NEWROOT/dev $NEWROOT/proc $NEWROOT/mnt -for a in /mnt/*; do mkdir -p $NEWROOT/$a; done - -cd / -tar cf - $DATA_DIRS | ( cd $NEWROOT; tar xf - ) - -date diff --git a/bootstrap b/bootstrap deleted file mode 100644 index 85970db..0000000 --- a/bootstrap +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -mkdir ~/p/ -mr checkout diff --git a/bright-max b/bright-max deleted file mode 100755 index 9827529..0000000 --- a/bright-max +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -cat /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/max_brightness | sudo tee /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/brightness diff --git a/buch_start.sh b/buch_start.sh deleted file mode 100755 index d1a3fa5..0000000 --- a/buch_start.sh +++ /dev/null @@ -1,30 +0,0 @@ - -dev1="/dev/sd$1"; shift -dev2="/dev/sd$1"; shift -dev3="/dev/sd$1"; shift - -#devs='/dev/sde /dev/sdf /dev/sdg' -devs="/dev/sde /dev/sdc /dev/sdd" -set -e -set -x -mdadm --assemble /dev/md0 $dev1 $dev2 $dev3 -cryptsetup luksOpen /dev/md0 raid -fsck /dev/mapper/raid -mount /home/services/raid - -exit 0 - -#mdadm --assemble /dev/md0 /dev/sde /dev/sdf /dev/sdg -#cryptsetup luksOpen /dev/md0 raid - -[19:25] denkbrett:~nico# mdadm --assemble --scan -/dev/md0: File exists -mdadm: /dev/md/0 has been started with 2 drives (out of 3). -mdadm: /dev/md/0 already active, cannot restart it! -mdadm: /dev/md/0 needed for /dev/sdc... -mdadm: /dev/md/0 already active, cannot restart it! -mdadm: /dev/md/0 needed for /dev/sdc... -[19:25] denkbrett:~nico# mdadm --manage -a /dev/md0 /dev/sdc -mdadm: re-added /dev/sdc -[19:25] denkbrett:~nico# - diff --git a/buch_stop.sh b/buch_stop.sh deleted file mode 100755 index 6481fe6..0000000 --- a/buch_stop.sh +++ /dev/null @@ -1,2 +0,0 @@ -cryptsetup luksClose raid -mdadm --misc --stop /dev/md0 diff --git a/build-autoconf.sh b/build-autoconf.sh deleted file mode 100755 index e5ed06e..0000000 --- a/build-autoconf.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# -# Nico Schottelius