[Debian-live-changes] r1117 -
configs/daniel/config/chroot_localincludes/usr/local/bin
Daniel Baumann
daniel at alioth.debian.org
Sun Apr 22 08:12:31 UTC 2007
Author: daniel
Date: 2007-04-22 08:12:30 +0000 (Sun, 22 Apr 2007)
New Revision: 1117
Modified:
configs/daniel/config/chroot_localincludes/usr/local/bin/chmods
configs/daniel/config/chroot_localincludes/usr/local/bin/chowns
configs/daniel/config/chroot_localincludes/usr/local/bin/cpufreqs
configs/daniel/config/chroot_localincludes/usr/local/bin/md5sums
configs/daniel/config/chroot_localincludes/usr/local/bin/pss
configs/daniel/config/chroot_localincludes/usr/local/bin/vi-mtime
configs/daniel/config/chroot_localincludes/usr/local/bin/vis
Log:
Modified: configs/daniel/config/chroot_localincludes/usr/local/bin/chmods
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/chmods 2007-04-21 20:34:57 UTC (rev 1116)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/chmods 2007-04-22 08:12:30 UTC (rev 1117)
@@ -1,6 +1,6 @@
#!/bin/sh
-# chmods.sh - Setting default file access permissions.
+# chmods.sh - Setting default file access permissions
#
# This script is written by Daniel Baumann <daniel at debian.org>
# and hereby placed in the public domain (no rights reserved).
@@ -13,7 +13,7 @@
# Show help
if [ "${1}" = "-h" ] || [ "${1}" = "--help}" ]
then
- echo "chmods.sh - Setting default file access permissions."
+ echo "chmods.sh - Setting default file access permissions"
echo
echo "Usage: `basename ${0}` [DIRECTORY]"
exit 1
@@ -28,20 +28,20 @@
fi
# Process directories
-find "${DIRECTORY}" -type d -exec chmod 0755 {} \;
-find "${DIRECTORY}" -type d -name lost+found -exec chmod 0700 {} \;
+find "${DIRECTORY}" -type d | xargs chmod 0755
+find "${DIRECTORY}" -type d -name lost+found | xargs chmod 0700
# Process files
-find "${DIRECTORY}" -type f -exec chmod 0644 {} \;
+find "${DIRECTORY}" -type f | xargs chmod 0644
# Process excludes
for EXCLUDES in ${EXCLUDES}
do
- find "${DIRECTORY}" -type f -name "${EXCLUDES}" -exec chmod 0640 {} \;
+ find "${DIRECTORY}" -type f -name "${EXCLUDES}" | xargs chmod 0640
done
# Process executables
for EXECUTABLE in ${EXECUTABLES}
do
- find "${DIRECTORY}" -type f -name "${EXECUTABLE}" -exec chmod 0755 {} \;
+ find "${DIRECTORY}" -type f -name "${EXECUTABLE}" | xargs chmod 0755
done
Modified: configs/daniel/config/chroot_localincludes/usr/local/bin/chowns
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/chowns 2007-04-21 20:34:57 UTC (rev 1116)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/chowns 2007-04-22 08:12:30 UTC (rev 1117)
@@ -1,6 +1,6 @@
#!/bin/sh
-# chowns.sh - Setting default file owner and group.
+# chowns.sh - Setting default file owner and group
#
# This script is written by Daniel Baumann <daniel at debian.org>
# and hereby placed in the public domain (no rights reserved).
@@ -13,7 +13,7 @@
# Show help
if [ "${1}" = "-h" ] || [ "${1}" = "--help}" ]
then
- echo "chowns.sh - Setting default file owner and group."
+ echo "chowns.sh - Setting default file owner and group"
echo
echo "Usage: `basename ${0}` [USER]"
exit 1
Modified: configs/daniel/config/chroot_localincludes/usr/local/bin/cpufreqs
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/cpufreqs 2007-04-21 20:34:57 UTC (rev 1116)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/cpufreqs 2007-04-22 08:12:30 UTC (rev 1117)
@@ -1,6 +1,6 @@
#!/bin/sh
-# cpufreqs.sh - Setting cpu frequencies.
+# cpufreqs.sh - Setting cpu frequencies
#
# This script is written by Daniel Baumann <daniel at debian.org>
# and hereby placed in the public domain (no rights reserved).
@@ -10,7 +10,7 @@
# Show help
if [ "${1}" = "-h" ] || [ "${1}" = "--help}" ]
then
- echo "cpufreqs.sh - Setting cpu frequencies."
+ echo "cpufreqs.sh - Setting cpu frequencies"
echo
echo "Usage: `basename ${0}` {gov|per|use|ava|cur|man|max|min}"
echo "Usage: `basename ${0}` {governor|performance|userspace|available|current|manual|maximal|minimal}"
@@ -126,7 +126,7 @@
if [ "${?}" = "0" ]
then
echo "${CPU}: current frequency `cat scaling_cur_freq`kHz."
-
+
if [ "`cat scaling_cur_freq`" = ${2} ]
then
echo "${CPU}: frequency already set to `cat scaling_cur_freq`kHz."
Modified: configs/daniel/config/chroot_localincludes/usr/local/bin/md5sums
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/md5sums 2007-04-21 20:34:57 UTC (rev 1116)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/md5sums 2007-04-22 08:12:30 UTC (rev 1117)
@@ -1,6 +1,6 @@
#!/bin/sh
-# md5sums.sh - Generate signed MD5 message digests files.
+# md5sums.sh - Generate signed MD5 message digests files
#
# This script is written by Daniel Baumann <daniel at debian.org>
# and hereby placed in the public domain (no rights reserved).
@@ -33,7 +33,7 @@
fi
# Remove old digests
- rm -f MD5SUMS
+ rm -f MD5SUM*
if [ ! -z "`ls`" ]
then
@@ -90,11 +90,11 @@
;;
--clean)
- find "`pwd`" -type f -name MD5SUMS* -exec rm -f {} \;
+ find "`pwd`" -type f -name "MD5SUM*" | xargs rm -f
;;
--list)
- find "`pwd`" -type f -name MD5SUMS*
+ find "`pwd`" -type f -name "MD5SUM*"
;;
-s|--sum)
@@ -119,7 +119,7 @@
if [ -d "${PARENT_DIRECTORY}" ]
then
cd "${PARENT_DIRECTORY}"
-
+
for DIRECTORY in *
do
if [ -d "${DIRECTORY}" ]
@@ -129,14 +129,14 @@
cd ..
fi
done
-
+
cd ..
fi
done
;;
-h|--help)
- echo "md5sums.sh - Generate signed MD5 message digests files."
+ echo "md5sums.sh - Generate signed MD5 message digests files"
echo
echo "Usage: `basename ${0}` [-c|--check] [-cc|--recursive-check] [-ccc|--double-recursive-check]"
echo "Usage: `basename ${0}` [--clean] [--list]"
Modified: configs/daniel/config/chroot_localincludes/usr/local/bin/pss
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/pss 2007-04-21 20:34:57 UTC (rev 1116)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/pss 2007-04-22 08:12:30 UTC (rev 1117)
@@ -1,6 +1,6 @@
#!/bin/sh
-# pss.sh - Greps through list of the current processes.
+# pss.sh - Greps through list of the current processes
#
# This script is written by Daniel Baumann <daniel at debian.org>
# and hereby placed in the public domain (no rights reserved).
@@ -13,7 +13,7 @@
# Show help
if [ "${1}" = "-h" ] || [ "${1}" = "--help}" ]
then
- echo "pss.sh - Greps through list of the current processes."
+ echo "pss.sh - Greps through list of the current processes"
echo
echo "Usage: `basename ${0}` [GREP_PATTERN]"
exit 1
Modified: configs/daniel/config/chroot_localincludes/usr/local/bin/vi-mtime
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/vi-mtime 2007-04-21 20:34:57 UTC (rev 1116)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/vi-mtime 2007-04-22 08:12:30 UTC (rev 1117)
@@ -1,6 +1,6 @@
#!/bin/sh
-# vi-mtime.sh - Editing files without changing mtime.
+# vi-mtime.sh - Editing files without changing mtime
#
# This script is written by Daniel Baumann <daniel at debian.org>
# and hereby placed in the public domain (no rights reserved).
@@ -10,18 +10,18 @@
# Show help
if [ -z "${1}" ]
then
- echo "vi-mtime.sh - Editing files without changing mtime."
+ echo "vi-mtime.sh - Editing files without changing mtime"
echo
echo "Usage: `basename ${0}` FILE"
exit 1
fi
# Saving mtime
-touch -r "${1}" ."${1}".date
+touch -r "${1}" ."${1}".mtime
# Process file
vi "${1}"
# Restoring mtime
-touch -r ."${1}".date "${1}"
-rm -f ."${1}".date
+touch -r ."${1}".mtime "${1}"
+rm -f ."${1}".mtime
Modified: configs/daniel/config/chroot_localincludes/usr/local/bin/vis
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/vis 2007-04-21 20:34:57 UTC (rev 1116)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/vis 2007-04-22 08:12:30 UTC (rev 1117)
@@ -1,6 +1,6 @@
#!/bin/sh
-# vis.sh - Editing files recursively.
+# vis.sh - Editing files recursively
#
# This script is written by Daniel Baumann <daniel at debian.org>
# and hereby placed in the public domain (no rights reserved).
@@ -10,7 +10,7 @@
# Show help
if [ "${1}" = "-h" ] || [ "${1}" = "--help}" ]
then
- echo "vis.sh - Editing files recursively."
+ echo "vis.sh - Editing files recursively"
echo
echo "Usage: `basename ${0}` [-r|--recursive]"
exit 1
More information about the Debian-live-changes
mailing list