From e013d33141cb8607a48a15d380cc51f71aa854bc Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 21 Nov 2018 23:55:20 +0100 Subject: [PATCH] - skel-root/hd2: keep migration script in var-partition up-to-date --- skel-root/coolstream/hd2/etc/init.d/var_update.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/skel-root/coolstream/hd2/etc/init.d/var_update.sh b/skel-root/coolstream/hd2/etc/init.d/var_update.sh index 9390bcb1..43b0107a 100755 --- a/skel-root/coolstream/hd2/etc/init.d/var_update.sh +++ b/skel-root/coolstream/hd2/etc/init.d/var_update.sh @@ -15,6 +15,8 @@ SHOWINFO "start update of var-partition" # do always upgrade update.urls cp -a /var_init/etc/update.urls /var/etc/update.urls +# and migration.sh too +cp -a /var_init/tuxbox/config/migration.sh /var/tuxbox/config/migration.sh # cleanup (remove me in the future...) rm -f /var/etc/.cooliptv @@ -40,9 +42,6 @@ if [ ! -e /var/etc/auto.net ]; then cp -a /var_init/etc/auto.net /var/etc/auto.net fi -# force new root default password "ni" as of 29.06.2017 -grep "root::0:0::" /var/etc/passwd && cp -af /var_init/etc/passwd /var/etc/passwd - if [ ! -e /var/tuxbox/config/rssreader.conf ]; then cp -a /var_init/tuxbox/config/rssreader.conf /var/tuxbox/config/rssreader.conf fi @@ -69,7 +68,10 @@ for f in cfg feeds playlist; do fi done -SHOWINFO "change shell for root" +# force new root default password "ni" as of 29.06.2017 +grep "root::0:0::" /var/etc/passwd && cp -af /var_init/etc/passwd /var/etc/passwd + +# change shell for root sed -i '/^root/ s:/bin/bash:/bin/sh:g' /var/etc/passwd cd /var/root test -e .bash_history && mv .bash_history .ash_history