Jeremy Kerr | af3fa30 | 2015-09-17 18:39:55 +0800 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | # replace /var/* symlinks with actual directories | ||||
4 | |||||
5 | find $TARGET_DIR/var/ -type l | | ||||
6 | while read path | ||||
7 | do | ||||
Douglas Miller | d643390 | 2015-10-02 10:33:46 -0500 | [diff] [blame] | 8 | [ -d "$path" ] || continue |
9 | rm -v $path | ||||
10 | mkdir -v $path | ||||
Jeremy Kerr | af3fa30 | 2015-09-17 18:39:55 +0800 | [diff] [blame] | 11 | done |