diff options
Diffstat (limited to 'init.d/bootmisc.in')
-rw-r--r-- | init.d/bootmisc.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in index 43da1869..b1a849a3 100644 --- a/init.d/bootmisc.in +++ b/init.d/bootmisc.in @@ -113,8 +113,10 @@ migrate_to_run() rm $src elif [ ! -L $src -a -d $src ]; then ebegin "Migrating $src to $dst" - cp -a $src/* $dst/ - rm -rf $src + if ! rmdir $src 2>/dev/null; then + cp -a $src/* $dst/ + rm -rf $src + fi eend $? fi # If $src doesn't exist at all, just run this |