projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding upstream version 1.110.4.
[live-boot-grml.git]
/
scripts
/
live-helpers
diff --git
a/scripts/live-helpers
b/scripts/live-helpers
index
e74108c
..
f49eaf7
100644
(file)
--- a/
scripts/live-helpers
+++ b/
scripts/live-helpers
@@
-1,16
+1,6
@@
#!/bin/sh
# live-initramfs helper functions, used by live-initramfs on boot and by live-snapshot
#!/bin/sh
# live-initramfs helper functions, used by live-initramfs on boot and by live-snapshot
-if [ "${BUILD_SYSTEM}" = "Ubuntu" ]
-then
- MP_QUIET="-Q"
-elif [ "${BUILD_SYSTEM}" = "Debian" ]
-then
- MP_QUIET="-q"
-else
- MP_QUIET=""
-fi
-
if [ ! -x "/bin/fstype" ]
then
# klibc not in path -> not in initramfs
if [ ! -x "/bin/fstype" ]
then
# klibc not in path -> not in initramfs
@@
-157,7
+147,7
@@
setup_loop ()
local offset=${4}
local encryption=${5}
local offset=${4}
local encryption=${5}
- modprobe
${MP_QUIET}
-b "${module}"
+ modprobe
-q
-b "${module}"
udevsettle
for loopdev in ${pattern}
udevsettle
for loopdev in ${pattern}
@@
-298,3
+288,17
@@
find_files ()
done
done
}
done
done
}
+
+get_mac ()
+{
+ mac=""
+ for adaptor in /sys/class/net/*;do
+ status=$(cat ${adaptor}/iflink)
+ if [ ${status} -eq 2 ];
+ then
+ mac=$(cat ${adaptor}/address)
+ mac=$(echo ${mac}|sed 's/:/-/g'|tr '[a-z]' '[A-Z]')
+ fi
+ done
+ echo $mac
+}