diff options
Diffstat (limited to 'etc/rc.cdrom')
-rwxr-xr-x | etc/rc.cdrom | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/etc/rc.cdrom b/etc/rc.cdrom index b8a62f0..2d95aed 100755 --- a/etc/rc.cdrom +++ b/etc/rc.cdrom @@ -29,9 +29,15 @@ fi # If the default config.xml and ez-ipupdate.cache do not exist, # lets populate them from the default (factory configuration) # files. -/rescue/cp /FreeSBIE/cf/conf/config.xml /cf/conf/ -/rescue/cp /FreeSBIE/conf.default/config.xml /conf.default/config.xml -/rescue/cp /FreeSBIE/cf/conf/ez-ipupdate.cache /cf/conf/ +if [ ! -f /cf/conf/config.xml ]; then + /rescue/cp /FreeSBIE/cf/conf/config.xml /cf/conf/ +fi +if [ ! -f /conf.default/config.xml ]; then + /rescue/cp /FreeSBIE/conf.default/config.xml /conf.default/config.xml +fi +if [ ! -f /cf/conf/ez-ipupdate.cache ]; then + /rescue/cp /FreeSBIE/cf/conf/ez-ipupdate.cache /cf/conf/ez-ipupdate.cache +fi # Create some needed directories /bin/mkdir -p /var/db/pkg/ |