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 | ||||
8 | target=$(realpath $path) | ||||
9 | [ -d "$target" ] || continue | ||||
10 | rm $path | ||||
11 | mkdir $path | ||||
12 | done |