From: Michael Prokop Date: Wed, 6 Sep 2023 15:26:11 +0000 (+0200) Subject: Release new version 2.13.0 X-Git-Tag: v2.13.0^0 X-Git-Url: http://git.grml.org/?p=grml-scripts.git;a=commitdiff_plain;h=HEAD;hp=3b7f948896440f41092f14347b17ce114072c569 Release new version 2.13.0 --- diff --git a/compile/.gitignore b/compile/.gitignore index 5f8d282..c6f80a9 100644 --- a/compile/.gitignore +++ b/compile/.gitignore @@ -1,4 +1,3 @@ align dpkg_not_running -vmware-detect grml-runtty diff --git a/compile/Makefile b/compile/Makefile index a5d42c3..964ae3c 100644 --- a/compile/Makefile +++ b/compile/Makefile @@ -1,4 +1,4 @@ -PROGS = vmware-detect dpkg_not_running grml-runtty +PROGS = dpkg_not_running grml-runtty #ifndef CFLAGS CFLAGS = -O2 -Wall -s @@ -14,9 +14,6 @@ CC = gcc all: $(PROGS) -vmware-detect: vmware-detect.c - diet $(CC) $(CFLAGS) -o $@ $^ - dpkg_not_running: dpkg_not_running.c diet $(CC) $(CFLAGS) -o $@ $^ diff --git a/compile/vmware-detect.c b/compile/vmware-detect.c deleted file mode 100644 index c99e36f..0000000 --- a/compile/vmware-detect.c +++ /dev/null @@ -1,143 +0,0 @@ -/* Filename: vmware-detect.c -* Purpose: Detect if running inside vmware -* Authors: grml-team (grml.org), (c) Michael Gebetsroither -* Bug-Reports: see http://grml.org/bugs/ -* License: This file is licensed under the GPL v2. -*******************************************************************************/ -// return 0 if running inside vmware, 1 otherwise - -#include "string.h" -#include "unistd.h" -#include "stdio.h" -#include "stdlib.h" -#include "signal.h" - -#define WRITE(x) write(1, x, strlen(x)) -#define DWRITE(x) do{ \ - if(debug) { \ - WRITE(x); \ - } \ -} while(0); -#define FALSE 0 -#define TRUE !FALSE - -/* doc: - * vmware IO backdoor: http://chitchat.at.infoseek.co.jp/vmware/backdoor.html - * http://www.honeynet.org/papers/bots/botnet-code.html - * http://www.codegurus.be/codegurus/Programming/virtualpc&vmware_en.htm - */ - -// from libowfat {{{ -static inline char tohex(char c) { - return c>=10?c-10+'a':c+'0'; -} - -unsigned int fmt_xlong(char *dest,unsigned long i) { - register unsigned long len,tmp; - /* first count the number of bytes needed */ - for (len=1, tmp=i; tmp>15; ++len) tmp>>=4; - if (dest) - for (tmp=i, dest+=len; ; ) { - *--dest = tohex(tmp&15); - if (!(tmp>>=4)) break; - } - return len; -} -// }}} - -void printIdtr(const unsigned char* idtr, unsigned size) -{ - unsigned i; - for(i=0; i Wed, 06 Sep 2023 17:24:49 +0200 + +grml-scripts (2.12.2) unstable; urgency=medium + + [ Michael Schierl ] + * [099f921] Fix `grml2ram` when booted via `loopback.cfg` + + -- Michael Prokop Fri, 03 Feb 2023 17:26:26 +0100 + +grml-scripts (2.12.1) unstable; urgency=medium + + [ Darshaka Pathirana ] + * [b382566] grml-resolution: Quick 'n dirty xrandr output parser fix + + -- Michael Prokop Mon, 28 Nov 2022 08:35:17 +0100 + +grml-scripts (2.12.0) unstable; urgency=medium + + [ Darshaka Pathirana ] + * [570d959] Set SHELL variable in run-welcome + run-screen + + -- Michael Prokop Fri, 25 Nov 2022 09:50:44 +0100 + +grml-scripts (2.11.2) unstable; urgency=medium + + * [454a3e5] iimage: replace egrep usage with grep -E + + -- Michael Prokop Fri, 11 Nov 2022 17:01:40 +0100 + +grml-scripts (2.11.1) unstable; urgency=medium + + * [40ec66c] Drop debian/compat and switch to debhelper-compat approach + * [3b7f948] grml_chroot: fix broken mount argument handling + + -- Michael Prokop Tue, 07 Jun 2022 15:59:26 +0200 + grml-scripts (2.11.0) unstable; urgency=medium [ Darshaka Pathirana ] diff --git a/debian/overrides b/debian/overrides index 1785ad1..7ed3bef 100644 --- a/debian/overrides +++ b/debian/overrides @@ -1,3 +1,2 @@ grml-scripts: script-with-language-extension usr/bin/notifyd.py -grml-scripts: statically-linked-binary usr/bin/vmware-detect grml-scripts: statically-linked-binary usr/sbin/dpkg_not_running diff --git a/debian/rules b/debian/rules index b5632fe..d9bebef 100755 --- a/debian/rules +++ b/debian/rules @@ -39,7 +39,6 @@ install: build cp -a usr_bin/* debian/grml-scripts/usr/bin/ cp -a usr_sbin/* debian/grml-scripts/usr/sbin/ cp -a usr_share/* debian/grml-scripts/usr/share/grml-scripts/ - install -m 755 compile/vmware-detect debian/grml-scripts/usr/bin/vmware-detect install -m 755 compile/dpkg_not_running debian/grml-scripts/usr/sbin/dpkg_not_running install -m 755 compile/grml-runtty debian/grml-scripts/sbin/grml-runtty @@ -85,7 +84,7 @@ binary-arch: build install /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/pong.1.gz \ /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/soundtest.1.gz \ /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/unblacklist.1.gz \ - /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/vmware-detect.1.gz + dh_strip dh_compress mkdir -p $(CURDIR)/debian/grml-scripts/usr/share/lintian/overrides/ diff --git a/usr_bin/grml-resolution b/usr_bin/grml-resolution index 5b334d7..08d075a 100755 --- a/usr_bin/grml-resolution +++ b/usr_bin/grml-resolution @@ -23,11 +23,10 @@ COUNTER=0 STRING="" # current mode -CURRENT_NUM=$(xrandr | awk '/\*/ {print $1}' | tr -d '*') -CURRENT_RESOLUTION=$(xrandr | awk '/\*/ {print $2 $3 $4}') +CURRENT_RESOLUTION=$(xrandr | awk '/\*/ {print $1"_"$2}') # menu -for i in $(xrandr | awk '{print $2$3$4}' | grep "^[0-9]") ; do +for i in $(xrandr | awk '{print $1"_"$2}' | grep "^[0-9]") ; do STRING="$STRING $COUNTER $i" ((COUNTER++)) done @@ -43,9 +42,7 @@ esac CHOSE=$(cat "$RESOLUTION") -if [ "$CHOSE" = "$CURRENT_NUM" ] ; then - dialog --title "$PN" --msgbox "Chosen resolution corresponds to current resolution. No changes needed." 0 0 -elif [ -n "$CHOSE" ] ; then +if [ -n "$CHOSE" ] ; then # shellcheck disable=SC2015 xrandr -s "$CHOSE" 2>"$ERROR" && \ dialog --title "$PN" --msgbox "Running xrandr with resolution was succesful." 0 0 || \ diff --git a/usr_bin/iimage b/usr_bin/iimage index 9b210d0..b2f81f7 100755 --- a/usr_bin/iimage +++ b/usr_bin/iimage @@ -1004,7 +1004,7 @@ function update_description_names() { find_all_images for i in $ALL_IMAGES ; do - if ! egrep "$i=" ./description >/dev/null ; then + if ! grep -E "$i=" ./description >/dev/null ; then echo "$i=`description $i`" >> ./description fi diff --git a/usr_sbin/grml2ram b/usr_sbin/grml2ram index a4e119e..0806383 100755 --- a/usr_sbin/grml2ram +++ b/usr_sbin/grml2ram @@ -65,6 +65,7 @@ fi GRMLSIZE="$(du $IMAGE | awk '{print $1}')" RAM=$(/usr/bin/gawk '/MemFree/{print $2}' /proc/meminfo) +LOOPDEV=$(/sbin/losetup -j "${IMAGE}" -n -O NAME) case "$*" in -f|--force) ewarn "Forcing copy process for grml-image (${GRMLSIZE}kB) as requested via force option." ; eend 0 @@ -80,7 +81,7 @@ esac einfo "Copying $IMAGE to RAM, this might take a while." rsync -a --progress $IMAGE /tmp/GRML LANGUAGE=C LANG=C LC_ALL=C perl << EOF -open LOOP, '/dev/null 2>&1 @@ -13,11 +14,11 @@ mkdir -m 700 "${SCREENDIR_}/S-$USER" >/dev/null 2>&1 # now run screen with config if [ "$(id -u)" = 0 ] ; then - exec screen -U -c /etc/grml/screenrc + exec screen -U -c /etc/grml/screenrc -s "-$SHELL" elif [ -r "$HOME/.screenrc" ] ; then - exec screen -U -c "$HOME/.screenrc" + exec screen -U -c "$HOME/.screenrc" -s "-$SHELL" else - exec screen -U -c /etc/grml/screenrc_generic + exec screen -U -c /etc/grml/screenrc_generic -s "-$SHELL" fi ## END OF FILE ################################################################# diff --git a/usr_share/run-welcome b/usr_share/run-welcome index 265301e..d8d694a 100755 --- a/usr_share/run-welcome +++ b/usr_share/run-welcome @@ -9,6 +9,8 @@ # shellcheck disable=SC1091 . /etc/grml/sh-lib +export SHELL=/bin/zsh + [ -r /etc/grml_version ] && GRMLVERSION=$(cat /etc/grml_version) || GRMLVERSION='(no version information available)' PATH=$HOME/bin:/bin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/games:/home/grml/bin CMDLINE=$(cat /proc/cmdline) @@ -82,6 +84,6 @@ Happy hacking! http://grml.org/ " fi -exec /bin/zsh -l +exec "$SHELL" -l ## END OF FILE #################################################################