Displaying 8 results from an estimated 8 matches for "oldifs".
Did you mean:
oldfs
2009 May 04
0
Re: Wine menus - rebuilding, deleting
...#39;s had their titles messed up in ~/.local/share/applications/
I rewrote your script to use shell constructs instead of 'find'. I've copied it here for others to play with.
Code:
#!/bin/sh
wine="wine"
rm="/bin/rm"
iterate_start_menu ()
{
local menu_dir
local oldIFS
menu_dir=$1
# don't use space as field-separator otherwise "paths with spaces" will fail to parse correctly
oldIFS=$IFS
IFS=?
echo "menu_dir=${menu_dir}"
# add a trailing slash to the directory name, then the glob wildcard
for entry in ${menu_dir}/*; do
if [ -f &quo...
2011 Jul 29
0
[PATCH node] fix dracut plugin wildcard handling
...would partition sda and sdb as part of HostVG and
# sdc and sdd as part of AppVG
# Since we only care which disks are being used, change to a single list
-storage_init=$(echo $storage_init | sed 's/;/,/')
+storage_init="$(echo "$storage_init" | sed 's/;/,/')"
oldIFS=$IFS
lvm pvscan 2>/dev/null
IFS=","
-for dev in $storage_init; do
+for dev in "$storage_init"; do
device=$(IFS=$oldIFS parse_disk_id "$dev")
echo "Wiping LVM from device: ${device}"
IFS=$oldIFS
diff --git a/scripts/ovirt-boot-functions b/...
2011 Jul 29
0
[PATCH node] Add debugging info to dracut plugin
...turn 0
fi
@@ -50,6 +55,7 @@ fi
# sdc and sdd as part of AppVG
# Since we only care which disks are being used, change to a single list
storage_init="$(echo "$storage_init" | sed 's/;/,/')"
+info "Replaced all ';' with ',' : $storage_init"
oldIFS=$IFS
@@ -57,14 +63,17 @@ lvm pvscan 2>/dev/null
IFS=","
for dev in "$storage_init"; do
device=$(IFS=$oldIFS parse_disk_id "$dev")
+ info "After parsing \"$dev\", we got \"$device\""
echo "Wiping LVM from device: ${d...
2010 Jul 21
0
[PATCH] RFC: Advanced Storage Configuration
...isk $bus $serial)
- fi
+ i=${i#ovirt_init=}
+ eval $(printf $i|awk -F\; '{ print "hostvgdisks="$1; print "appvgdisks="$2; }')
+ # Look into HostVG disks
+ if [ -n "$hostvgdisks" ]; then
+ oldIFS="$IFS"
+ IFS=,
+ init=
+ for d in $hostvgdisks; do
+ # resolve to disk device
+ case "$d" in
+ scsi*)
+ bus=scsi
+ d=${d#=scsi}...
2011 Aug 22
0
[PATCH node] handle wildcards appropriately in dracut plugin
...rage_init="$(echo "$storage_init" | sed 's/;/,/')"
info "Replaced all ';' with ',' : $storage_init"
+storage_init="$(echo "$storage_init" | sed 's/\*/\\\*/')"
+info "Escaped all asterisks: $storage_init"
oldIFS=$IFS
lvm pvscan 2>/dev/null
IFS=","
for dev in $storage_init; do
+ dev="$(echo "$dev" | sed 's/\\\*/\*/g')"
device=$(IFS=$oldIFS parse_disk_id "$dev")
info "After parsing \"$dev\", we got \"$device\""...
2002 Oct 11
0
[tcng] sysVinit script
...file
tcngConf=/etc/sysconfig/tcng
offMsg=OFF
onMsg=ON
debug=1
# Source function library.
. /etc/rc.d/init.d/functions
isUp () {
res=`$tc qdisc show dev $1`
if [ -z "$res" ]; then return 1; fi
return 0
}
start () {
gprintf "Starting tcng services: "; echo
OLDIFS="$IFS"
IFS="
"
cmds=`$tcc $tcngConf | grep -v "^#" | sed -e "s/^tc//"`
for cmd in $cmds; do
[ $debug -eq 1 ] && gprintf "Execute : $cmd:" && echo;
eval "$tc $cmd"
done
touch /var/lock/su...
2009 Jan 31
3
Script: Moving Maildirs between servers
...ly change, it's where you have mounted the old server's home:
SOURCEBASE=/mnt/casiopea-home
DESTBASE=/home
# Just an abbreviation:
MD=Maildir
# Change field separator, for find's sake as there might be folders with spaces:
# (doesn't play well together with the for loop otherwise)
OLDIFS=${IFS}
IFS='
'
# User loop:
# Depending on your source system's setup,
# you probably have non-interactive users with home directories (one of them
# is probably named _dovecot) that shall not be copied. Edit the username
# exclusion list according to your needs.
#
for username in `ls...
2011 Aug 25
0
[PATCH node] always remove HostVG in dracut when reinstall/uninstall/firstboot passed
...ostVG/{print $2}'); do
+ storage_init="$hostvg,$storage_init"
+ info "Found HostVG on $hostvg"
+done
+
# storage_init is passed in a specific format
# A comma separated list of HostVG devices
@@ -60,7 +69,6 @@ info "Escaped all asterisks: $storage_init"
oldIFS=$IFS
-lvm pvscan 2>/dev/null
IFS=","
for dev in $storage_init; do
dev="$(echo "$dev" | sed 's/\\\*/\*/g')"
--
1.7.4.4