Ignore:
Timestamp:
Dec 24, 2016, 3:58:07 PM (3 years ago)
Author:
amain
Message:

rootfs: several minor fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/rootfs/files/all/usr/sbin/PostInstall

    r868 r880  
    1414  echo "I: Running second stage of debootstap (may take some time)"
    1515  /debootstrap/debootstrap --second-stage
     16else
     17  echo "I: No debootstrap executable found, assuming 'second stage debootstrap' is already done"
     18fi
    1619
    17   echo "I: Cleaning up /var/cache/apt/archives"
    18   rm -rf /var/cache/apt/archives
    19   mkdir -p /var/cache/apt/archives/partial
    20 else
    21   echo "W: No debootstrap executable found, assuming 'second stage debootstrap' is allready done"
    22 fi
     20echo "I: Cleaning up /var/cache/apt/archives"
     21rm -rf /var/cache/apt/archives
     22mkdir -p /var/cache/apt/archives/partial
    2323
    2424# hack for Debian sid
    2525[ -e /tmp/sshd -a ! -e /var/run/sshd ] && mv /tmp/sshd /var/run
    2626
    27 if [ -f /etc/init.d/rcS ] ; then
    28   # the symbolic link to /etc/init.d/rcS.firstboot is gone
    29   if ! diff -q /etc/init.d/rcS /etc/init.d/rcS.debian; then
    30     # they are equal
    31     rm /etc/init.d/rcS.debian
    32   fi
    33 fi
     27# disable systemd services
     28echo "I: Disabling services"
     29find /etc/systemd -name "inetd.service"   -delete
     30find /etc/systemd -name "dnsmasq.service" -delete
    3431
    35 if [ $(find /lib/modules/ -maxdepth 1 -mindepth 1 -type d | wc -l) -lt 1 ]
    36 then
    37   cat << HERE
    38 
    39 W: No kernel modules directory found in /lib/modules.
    40    See /lib/modules/debwrt.README for more information.
    41 
    42 HERE
    43 fi
    44 
    45 if [ -x /usr/sbin/in.telnetd ] ; then
    46   echo "W: telnet daemon programm found, consider uninstalling it."
    47   echo
    48 fi
    49 
    50 # note: This program did NOT check NOR setup network switch configuration
     32echo "I: Setting root password"
     33sed -i 's!^root:.*!root:$1$Rm/q9RCm$khpJ819vFteZqYNdf60wb1:14254:0:99999:7:::!' /etc/shadow
    5134
    5235echo -n "I: syncing disks...."
Note: See TracChangeset for help on using the changeset viewer.