Lines 495-501
int fbsplash_cache_cleanup(char **profile_save)
Link Here
|
495 |
|
495 |
|
496 |
nosave: |
496 |
nosave: |
497 |
/* Clear a stale mtab entry that might have been created by the initscripts. */ |
497 |
/* Clear a stale mtab entry that might have been created by the initscripts. */ |
498 |
system("/bin/sed -i -e '\\#"FBSPLASH_CACHEDIR"# d' /etc/mtab"); |
498 |
if(lstat("/etc/mtab", &buf) != 0 || !S_ISLNK(buf.st_mode)) { |
|
|
499 |
system("/bin/sed -i -e '\\#"FBSPLASH_CACHEDIR"# d' /etc/mtab"); |
500 |
} |
499 |
|
501 |
|
500 |
umount2(what, MNT_DETACH); |
502 |
umount2(what, MNT_DETACH); |
501 |
return err; |
503 |
return err; |