Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- multipath_conf=/etc/multipath.conf
- overrides_conf="no_path_retry 50"
- if ! grep -q "no_path_retry fail" -e "(no_path_retry\s\d+)" "$multipath_conf"; then
- printf "%s\n" " " "overrides {" " $overrides_conf" "}" >> $multipath_conf
- fi
- ~
Advertisement
Add Comment
Please, Sign In to add comment