diff options
| author | Daniel Baumann <daniel@debian.org> | 2007-09-24 09:45:11 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:31:05 +0100 |
| commit | cc62ca76356dc851006e3fc980cc1dcc46ef9ca6 (patch) | |
| tree | e821a640df8121aaea6e02e814c6a82bc75bac46 /scripts/live-bottom/13swap | |
| parent | 32e6d9c217846ec5f6d2da9b773a34c4d1970348 (diff) | |
| download | live-boot-cc62ca76356dc851006e3fc980cc1dcc46ef9ca6.tar.gz live-boot-cc62ca76356dc851006e3fc980cc1dcc46ef9ca6.zip | |
Consistently using curly brackets for variables.
Diffstat (limited to 'scripts/live-bottom/13swap')
| -rwxr-xr-x | scripts/live-bottom/13swap | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/live-bottom/13swap b/scripts/live-bottom/13swap index 4980433..f3af1cc 100755 --- a/scripts/live-bottom/13swap +++ b/scripts/live-bottom/13swap @@ -36,25 +36,25 @@ devices="" for device in /dev/[hs]d[a-z][0-9]* do - if ! [ -b "$device" ] + if ! [ -b "${device}" ] then continue fi - magic=$(/bin/dd if="$device" bs=4086 skip=1 count=1 2>/dev/null | /bin/dd bs=10 count=1 2>/dev/null) || continue + magic=$(/bin/dd if="${device}" bs=4086 skip=1 count=1 2>/dev/null | /bin/dd bs=10 count=1 2>/dev/null) || continue - if [ "$magic" = "SWAPSPACE2" -o "$magic" = "SWAP-SPACE" ] + if [ "${magic}" = "SWAPSPACE2" -o "${magic}" = "SWAP-SPACE" ] then - #log "Found $device" - devices="$devices $device" + #log "Found ${device}" + devices="${devices} ${device}" fi done -for device in $devices +for device in ${devices} do -cat >> $FSTAB << EOF -$device swap swap defaults 0 0 +cat >> ${FSTAB} << EOF +${device} swap swap defaults 0 0 EOF done |
