You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.1 KiB
62 lines
1.1 KiB
8 years ago
|
#!/bin/sh
|
||
|
|
||
|
. /etc/init.d/globals
|
||
|
|
||
|
SHOWINFO "force some symlinks from var-partition"
|
||
|
|
||
4 years ago
|
SYMLINKS=" \
|
||
|
/etc/exports \
|
||
|
/etc/hostname \
|
||
|
/etc/passwd \
|
||
|
/etc/resolv.conf \
|
||
|
/etc/wpa_supplicant.conf \
|
||
|
/etc/network/interfaces \
|
||
|
"
|
||
|
|
||
|
for s in $SYMLINKS; do
|
||
|
ln -sf /var${s} ${s}
|
||
|
done
|
||
8 years ago
|
|
||
|
SHOWINFO "start update of var-partition"
|
||
|
|
||
4 years ago
|
FORCE_FILES=" \
|
||
|
/var/etc/update.urls \
|
||
|
/var/tuxbox/config/migration.sh \
|
||
|
"
|
||
|
for f in $FORCE_FILES; do
|
||
|
cp -a ${f//\/var/\/var_init} ${f}
|
||
|
done
|
||
8 years ago
|
|
||
4 years ago
|
SHOWINFO "add some new dirs and files to var-partition"
|
||
|
|
||
|
NEW_DIRS=" \
|
||
|
/var/root \
|
||
4 years ago
|
/var/etc/sysctl.d \
|
||
4 years ago
|
"
|
||
|
mkdir -p $NEW_DIRS
|
||
|
|
||
|
NEW_FILES=" \
|
||
|
/var/etc/auto.master \
|
||
|
/var/etc/auto.net \
|
||
|
/var/etc/inadyn.conf \
|
||
4 years ago
|
/var/etc/profile.local \
|
||
|
/var/etc/rc.local \
|
||
4 years ago
|
/var/tuxbox/config/myservices.xml \
|
||
|
/var/tuxbox/config/rssreader.conf \
|
||
|
/var/tuxbox/config/shellexec.conf \
|
||
|
/var/tuxbox/config/webradio_usr.xml \
|
||
|
/var/tuxbox/config/webtv_usr.xml \
|
||
|
/var/xupnpd/xupnpd_cfg.lua \
|
||
|
/var/xupnpd/xupnpd_feeds.lua \
|
||
|
/var/xupnpd/xupnpd_playlist.lua \
|
||
|
"
|
||
|
for f in $NEW_FILES; do
|
||
|
if [ ! -e ${f} ]; then
|
||
4 years ago
|
mkdir -p $(dirname ${f})
|
||
4 years ago
|
cp -a ${f//\/var/\/var_init} ${f}
|
||
8 years ago
|
fi
|
||
|
done
|
||
|
|
||
|
SHOWINFO "done"
|
||
|
mv $0 $0.done
|