summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-24 07:34:40 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:31:05 +0100
commit32e6d9c217846ec5f6d2da9b773a34c4d1970348 (patch)
treea0baa6cae512518f496001e09da937d48b12fe0f /scripts
parent0425f47ed188df074c9e4c95ca64a7ba6e0b8e88 (diff)
downloadlive-boot-32e6d9c217846ec5f6d2da9b773a34c4d1970348.tar.gz
live-boot-32e6d9c217846ec5f6d2da9b773a34c4d1970348.zip
Replacing backticks with POSIX expression.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live14
-rwxr-xr-xscripts/live-bottom/10adduser2
-rw-r--r--scripts/live-helpers4
3 files changed, 10 insertions, 10 deletions
diff --git a/scripts/live b/scripts/live
index b883c92..47b4469 100755
--- a/scripts/live
+++ b/scripts/live
@@ -36,7 +36,7 @@ Arguments ()
{
PRESEEDS=""
- for ARGUMENT in `cat /proc/cmdline`
+ for ARGUMENT in $(cat /proc/cmdline)
do
case "${ARGUMENT}" in
access=*)
@@ -419,7 +419,7 @@ is_live_path ()
then
for FILESYSTEM in squashfs ext2 ext3 xfs dir
do
- if [ "`echo ${DIRECTORY}/${LIVE_MEDIA_PATH}/*.${FILESYSTEM}`" != "${DIRECTORY}/${LIVE_MEDIA_PATH}/*.${FILESYSTEM}" ]
+ if [ "$(echo ${DIRECTORY}/${LIVE_MEDIA_PATH}/*.${FILESYSTEM})" != "${DIRECTORY}/${LIVE_MEDIA_PATH}/*.${FILESYSTEM}" ]
then
return 0
fi
@@ -631,7 +631,7 @@ do_netmount ()
do_httpmount ()
{
rc=1
- extension=`echo "${FETCH}" | sed 's/\(.*\)\.\(.*\)/\2/'`
+ extension=$(echo "${FETCH}" | sed 's/\(.*\)\.\(.*\)/\2/')
case "${extension}" in
squashfs|tgz|tar)
@@ -838,7 +838,7 @@ setup_unionfs ()
# Let's just mount the read-only file systems first
rofsstring=""
rofslist=""
- minor_kernel_version=`uname -r|cut -c 5-|sed 's/[^0-9].*//'`
+ minor_kernel_version=$(uname -r|cut -c 5-|sed 's/[^0-9].*//')
if [ "${NETBOOT}" = "nfs" ] && [ "${minor_kernel_version}" -lt 22 ]
then
@@ -851,13 +851,13 @@ setup_unionfs ()
# Read image names from ${MODULE}.module if it exists
if [ -e "${image_directory}/filesystem.${MODULE}.module" ]
then
- for IMAGE in `cat ${image_directory}/filesystem.${MODULE}.module`
+ for IMAGE in $(cat ${image_directory}/filesystem.${MODULE}.module)
do
image_string="${image_string} ${image_directory}/${image}"
done
elif [ -e "${image_directory}/${MODULE}.module" ]
then
- for IMAGE in `cat ${image_directory}/${MODULE}.module`
+ for IMAGE in $(cat ${image_directory}/${MODULE}.module)
do
image_string="${image_string} ${image_directory}/${image}"
done
@@ -875,7 +875,7 @@ setup_unionfs ()
done
# Now sort the list
- image_string="`echo ${image_string} | sed -e 's/ /\n/g' | sort `"
+ image_string="$(echo ${image_string} | sed -e 's/ /\n/g' | sort )"
fi
[ -n "${MODULETORAMFILE}" ] && image_string="${image_directory}/$(basename ${MODULETORAMFILE})"
diff --git a/scripts/live-bottom/10adduser b/scripts/live-bottom/10adduser
index 4c83fa3..ed2e14e 100755
--- a/scripts/live-bottom/10adduser
+++ b/scripts/live-bottom/10adduser
@@ -33,7 +33,7 @@ log_begin_msg "Adding live session user..."
if [ "${BUILD_SYSTEM}" = "Debian" ]
then
- user_crypted="8Ab05sVQ4LLps" # as in `echo "live" | mkpasswd -s`
+ user_crypted="8Ab05sVQ4LLps" # as in $(echo "live" | mkpasswd -s)
else
user_crypted="U6aMy0wojraho" # "ubuntu"
fi
diff --git a/scripts/live-helpers b/scripts/live-helpers
index 9cf3b99..f4dae34 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -89,11 +89,11 @@ base_path ()
do
if echo "${mounts}" | grep -qs "^${testpath}"
then
- set -- `echo "${mounts}" | grep "^${testpath}" | lastline`
+ set -- $(echo "${mounts}" | grep "^${testpath}" | lastline)
echo ${1}
break
else
- testpath=`dirname $testpath`
+ testpath=$(dirname $testpath)
fi
done
}