found=0
expected=1
- if [[ ${check_opt:0:1} == '-' ]]; then
+ if [[ ${check_opt:0:1} = '-' ]]; then
expected=0
check_opt=${check_opt:1}
fi
opts=${nfsinfo[2]},
while [[ $opts ]]; do
- if [[ ${opts%%,*} == $check_opt ]]; then
+ if [[ ${opts%%,*} = $check_opt ]]; then
found=1
break
fi
#!/bin/sh
exec >/dev/console 2>&1
while read dev fs fstype opts rest; do
- [ "$dev" == "rootfs" ] && continue
+ [ "$dev" = "rootfs" ] && continue
[ "$fs" != "/" ] && continue
echo "nbd-OK $fstype $opts" >/dev/sda
break
opts=${nbdinfo[1]},
while [[ $opts ]]; do
- if [[ ${opts%%,*} == $fsopt ]]; then
+ if [[ ${opts%%,*} = $fsopt ]]; then
found=1
break
fi