projects
/
matthijs
/
upstream
/
backupninja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated autotools abstraction to properly pick up different awk, sed,
[matthijs/upstream/backupninja.git]
/
handlers
/
sys
diff --git
a/handlers/sys
b/handlers/sys
index 57d9d60859c37d2efba1052b2cbe7295d65b1e0b..ce9c5b03e2d523f267d950dc2186078c9e60aacf 100755
(executable)
--- a/
handlers/sys
+++ b/
handlers/sys
@@
-188,7
+188,7
@@
elif [ $os = "debian" ]; then
echo "Level: $level" >> $sysreportfile
for f in /etc/rc${level}.d/*; do
# Remove /etc/Knn or Snn from beginning
echo "Level: $level" >> $sysreportfile
for f in /etc/rc${level}.d/*; do
# Remove /etc/Knn or Snn from beginning
- ff=$(echo $f |
sed
's_/etc/rc..d/[KS][0-9][0-9]__')
+ ff=$(echo $f |
@SED@
's_/etc/rc..d/[KS][0-9][0-9]__')
if [ $f != $ff ]; then
echo $ff >> $sysreportfile
fi
if [ $f != $ff ]; then
echo $ff >> $sysreportfile
fi
@@
-443,7
+443,7
@@
fi
# these files can be used to directly partition a disk of the same size.
if [ "$partitions" == "yes" ]; then
# these files can be used to directly partition a disk of the same size.
if [ "$partitions" == "yes" ]; then
- devices=`$SFDISK -l 2>/dev/null | grep "^Disk /dev" |
awk
'{print $2}' | cut -d: -f1`
+ devices=`$SFDISK -l 2>/dev/null | grep "^Disk /dev" |
@AWK@
'{print $2}' | cut -d: -f1`
if [ "$devices" == "" ]; then
warning "No harddisks found"
fi
if [ "$devices" == "" ]; then
warning "No harddisks found"
fi