2 # Copyright (C) 2016 Ian Kelling
3 # This program is under GPL v. 3 or later, see <http://www.gnu.org/licenses/>
5 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?"' ERR
9 exec &> >(sudo
tee -a /var
/log
/distro-end
)
10 echo "$0: $(date): starting now)"
14 IFS
= read -r -d '' y ||
:
53 transmission-remote-gtk
58 spa
() { # simple package add
73 # https://apt.syncthing.net/
74 curl
-s https
://syncthing.net
/release-key.txt | sudo apt-key add
-
75 s
="deb http://apt.syncthing.net/ syncthing release"
76 if [[ $
(cat /etc
/apt
/sources.list.d
/syncthing.list
) != $s ]]; then
77 echo "$s" | s
dd of
=/etc
/apt
/sources.list.d
/syncthing.list
83 # installed via f-droid
84 # top right, actions, device id
86 # for installing on a remote comp:
87 # ssh -L 8384:localhost:8384 -N frodo
88 # went to http://localhost:8384/
90 # add folder to sync phone,
91 # staggered file versioning would be my normal choice, but choose
92 # trash can versioning for sake of space on phone, with
93 # clean out after 7 days.
95 # did ser syncthing@ian start
96 # then on phone, add device, hit bar code icon,
97 # install bar code scanner.
100 # things with no equivalent in other distros:
103 # for gui bug reporting
107 # for debconf-get-selections
113 ####### misc packages ###########
124 if [[ $HOSTNAME == frodo
]]; then
127 # note i had to do this, which is persistent:
129 # s chgrp debian-transmission torrents partial-torrents
131 # syslog says things like
132 # 'Failed to set receive buffer: requested 4194304, got 425984'
133 # google suggets giving it even more than that
134 tu
/etc
/sysctl.conf
<<'EOF'
135 net.core.rmem_max = 67108864
136 net.core.wmem_max = 16777216
140 # some reason it doesn't seem to start automatically anyways
141 pi-nostart tranmission-daemon
142 # config file documented here, and it's the same config
143 # for daemon vs client, so it's documented in the gui.
144 # https://trac.transmissionbt.com/wiki/EditConfigFiles#Options
147 p = '/etc/transmission-daemon/settings.json'
148 File.write(p, JSON.pretty_generate(JSON.parse(File.read(p)).merge({
149 'rpc-whitelist': '127.0.0.1,192.168.1.*',
150 'rpc-authentication-required': false,
151 'incomplete-dir': '/i/k/partial-torrents',
152 'download-dir': '/i/k/torrents',
153 "speed-limit-up": 700,
154 "speed-limit-up-enabled": true,
155 "ratio-limit": 1.4000,
156 "ratio-limit-enabled": true,
159 sgo transmission-daemon
162 # todo, setup it's config file & daemon
168 # adapted from /var/lib/dpkg/info/transmission-daemon.postinst
169 if ! getent passwd debian-transmission
> /dev
/null
; then
175 --home-dir /var
/lib
/transmission-daemon \
184 --disabled-password \
185 --home /var
/lib
/transmission-daemon \
191 # arch had a default config,
192 # debian had nothing until you start it.
193 # With a little trial an error, here is a minimal config
194 # taken from the generated one, plus changes that the
195 # settings ui does, without a bunch of ui crap settings.
197 # only settings I set were
202 d
=$f/.config
/transmission-remote-gtk
205 s
-u $u dd of
=$d/config.json
<<'EOF'
209 "profile-name" : "Default",
210 "hostname" : "frodo",
211 "rpc-url-path" : "/transmission/rpc",
214 "auto-connect" : true,
218 "update-active-only" : false,
219 "activeonly-fullsync-enabled" : false,
220 "activeonly-fullsync-every" : 2,
221 "update-interval" : 3,
222 "min-update-interval" : 3,
223 "session-update-interval" : 60,
231 "add-options-dialog" : false
239 # pi-nostart this doesn't seem to be good enough?
240 ser disable openvpn@client
252 wget
-N https
://dl.google.com
/linux
/direct
/google-chrome-stable_current_amd64.deb
254 s dpkg
-i google-chrome-stable_current_amd64.deb
&> $log
259 if grep '^dpkg: dependency problems prevent configuration of' \
260 $log &>/dev
/null
; then
261 s apt-get
-fy install
278 # ubuntu unknown. probably the same as debian, just check if the
279 # init scripts come with the package.
281 # copied from arch, but moved to etc
282 s
dd of
=/etc
/systemd
/user
/synergys.service
<<'EOF'
284 Description=Synergy Server Daemon
289 ExecStart=/usr/bin/synergys --no-daemon --config /etc/synergy.conf
293 WantedBy=multi-user.target
295 s
dd of
=/etc
/systemd
/user
/synergys.socket
<<'EOF'
297 Conflicts=synergys@.service
304 WantedBy=sockets.target
309 # taken from arch wiki.
310 s
dd of
=/etc
/systemd
/system
/synergyc@.service
<<'EOF'
312 Description=Synergy Client
317 ExecStart=/usr/bin/synergyc --no-daemon treetowl
319 # per man systemd.unit, StartLimitInterval, by default we
320 # restart more than 5 times in 10 seconds.
321 # And this param defaults too 200 miliseconds.
325 WantedBy=multi-user.target
330 systemctl
--user start synergys
331 systemctl
--user enable synergys
333 treetowl
) systemctl
--user enable synergys
;;
345 arch
) spa the_silver_searcher
;;
346 debian|ubuntu
) spa silversearcher-ag
;;
353 pi cups ghostscript gsfonts
# from arch wiki cups page
354 pi hplip
# from google
355 s gpasswd
-a $USER sys
# from arch wiki
356 sgo org.cups.cupsd.service
357 # goto http://127.0.0.1:631
358 # administration tab, add new printer button.
359 # In debian, I could use hte recommended driver,
360 # in arch, I had to pick out the 6L driver.
365 # other distros unknown
370 ubuntu|debian
) spa ack-grep
;;
371 arch|fedora
) spa ack
;;
375 ubuntu|debian
) pi
--no-install-recommends mairix notmuch
;;
376 fedora|arch
) spa mairix notmuch
;;
379 arch
) spa nfs-utils
;;
380 ubuntu|debian
) spa nfs-client
;;
383 ubuntu|debian
) spa par2
;;
384 arch|fedora
) spa par2cmdline
;;
387 # needed for my tex resume
389 ubuntu|debian
) spa texlive-full
;;
390 arch
) spa texlive-most
;;
396 # flash, unrar, codecs, ms fonts.
397 # This has a manual prompt.
398 spa ubuntu-restricted-extras
402 # rpm fusion recommended codecs
403 s su
-c "yum localinstall -y --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm"
404 pi gstreamer-plugins-ugly gstreamer-plugins-bad gstreamer-ffmpeg\
405 xine-lib-extras-freeworld
410 # optional dep for firefox for h.264 video
411 arch
) spa gst-libav
;;
412 # other distros, probably come by default
416 fedora|ubuntu|debian
) spa gnupg-agent
;;
422 fedora
) spa pinentry-gtk
;;
423 *) : ;; # comes default or with other packages
427 arch
) spa firefox pulseaudio
;;
428 *) : ;; # comes default or with other packages
440 arch
) spa ttf-dejavu
;;
441 debian|ubuntu
) spa fonts-dejavu
;;
446 debian|ubuntu
) spa ntp
;;
456 debian|ubuntu
) spa x11-utils
;;
461 arch
) pi virt-install
;;&
462 debian|ubuntu
) pi virtinst
;;&
463 *) pi virt-manager
;; # creates the libvirt group in debian at least
466 # allow user to run vms, from debian handbook
467 for x
in ian traci
; do s usermod
-a -G libvirt
$x; done
468 # bridge networking as user fails. google lead here, but it doesn't work:
469 # oh well, I give up.
470 # http://wiki.qemu.org/Features-Done/HelperNetworking
472 # f=/etc/qemu/bridge.conf
476 # #s chown root:qemu $f # debian has somethig like qemu-libvirt. equivalent?
482 debian|ubuntu
) spa genisoimage
;;
487 arch
) spa spice-gtk3
;;
488 debian|ubuntu
) spa spice-client-gtk
;;
492 # general known for debian/ubuntu, not for fedora
495 # cdrkit for cloud-init isos
496 # dnsmasq & ebtables for nat networking in libvirt
497 # qemu for qemu-img, bind-tools for dig
498 # dmidecode just because syslog complains
499 pi
unzip wget xorg-xmodmap dmidecode ebtables\
500 bridge-utils dnsmasq qemu bind-tools
501 # otherwise we get error about accessing kvm module.
502 # seems like there might be a better way, but google was a bit vague.
503 s
sed -ri '/^ *user *=/d' /etc
/libvirt
/qemu.conf
504 echo 'user = "root"' | s
tee -a /etc
/libvirt
/qemu.conf
505 # https://bbs.archlinux.org/viewtopic.php?id=206206
506 # # this should prolly go in the wiki
508 # guessing this is not needed
509 #sgo virtlogd.service
521 arch
) pi virtviewer
;;
522 *) : ;; # other distros have it as a dependency afaik.
529 # ubuntu 14.04 uses b-cron,
530 # but it's not maintained in arch.
531 # of the ones in the main repos, cronie is only one maintained.
532 # fcron appears abandoned software.
536 *) : ;; # other distros come with cron.
541 fedora
) cabal
install shellcheck
;;
543 # unknown for older ubuntu
548 arch|debian|ubuntu
) spa pumpa
;;
549 # others unknown. do have a buildscript:
550 # /a/bin/buildscripts/pumpa ;;
555 debian|ubuntu
) spa android-tools-adb
;;
556 arch
) spa android-tools
;;
557 # other distros unknown
567 # proprietary flash. going without for now
570 # pi flashplugin-nonfree
578 wget http
://tamacom.com
/global
/global-6.3
.2.
tar.gz
581 # based on https://github.com/leoliu/ggtags
582 .
/configure
--with-exuberant-ctags=/usr
/bin
/ctags
585 s pip
install pygments
599 # leave this for last so it doesn't do a bunch of other apps
600 # which I want explicitly installed in case I switch DE's
603 pi task-cinnamon-desktop
604 # in settings, change scrolling to two-finger,
605 # because the default edge scroll doesn\'t work.
613 # already in debian jessie
616 pi
"${simple_packages[@]}"
618 ######### end misc packages #########
621 # packages I once used before and liked, but don't want installed now for
623 # python-sqlite is used for offlineimap
624 # lxappearance python-sqlite dolphin paman dconf-editor
630 # todo, finish configuring smart.
631 # mostly from https://wiki.archlinux.org/index.php/S.M.A.R.T.
632 # turn on smart. background on options:
633 # first line, -a = test everyting on all devices.
634 # -S on, turn on disk internal saving of vendor specific info,
635 # from google, seems like this is usually already on and fairly standard.
636 # -o on, turn on 4 hour period non-performance degrading testing.
637 # short test daily 2-3am, extended tests Saturdays between 3-4am:
638 sched
="-s (S/../.././02|L/../../6/03)"
639 s
sed -i "s#^[[:space:]]*DEVICESCAN.*#\
640 DEVICESCAN -a -o on -S on -n standby,q $sched\
641 -m ian@iankelling.org -M exec /usr/local/bin/smart-notify#" /etc
/smartd.conf
643 # in the default configuration of at least ubuntu 14.04, resolvconf is
644 # configured to order any nameservers associated with tun* or tap*
645 # before the normal internet interfaces, which means they are always
646 # consulted first. This is often slower and undesirable, ie. local dns
647 # queries go from 0ms to 10+ or 100+ ms. To reverse the ordering, you
649 #sudo sed -i '/tun\*\|tap\*/d' /etc/resolvconf/interface-order
650 # however, this breaks dns lookup for hosts on the openvpn lan.
651 # I can\'t figure out why hosts on the normal lan would not be
652 # broken under the default ordering, except the host I was
653 # testing with previously had an entry in /etc/hosts.
655 ############# end unfinished
657 ########### misc stuff
659 if [[ $HOSTNAME == frodo
]]; then
660 tu
/etc
/exports
<<'EOF'
661 /k 192.168.1.0/24(rw,nohide,no_subtree_check,insecure)
666 if [[ `debian-archive` == stable
]]; then
667 s
dd of
=/etc
/apt
/preferences.d
/unison-gtk
<<'EOF'
668 Explanation: Allow unison-gtk to be upgraded
670 Pin: release a=unstable
677 # default is alsa, doesn\'t work with with pianobar
678 s
dd of
=/etc
/libao.conf
<<'EOF'
686 arch|debian|ubuntu
) pi btrbk
;;
690 if [[ $HOSTNAME == treetowl
]] && [[ `debian-archive` != testing
]]; then
691 # fail2 ban is broken, with a workaround, per
692 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770171
693 # ill wait a while to see if it gets fixed
701 case $
(distro-name
) in
703 # allows me to pipe with ssh -t, and gets rid of spam
704 # http://forums.debian.net/viewtopic.php?f=5&t=85822
705 # i'd rather disable the service than comment the init file
706 # this says disabling the service, it will still get restarted
707 # but this script doesn't do anything on restart, so it should be fine
708 s
dd of
=/var
/run
/motd.dynamic
if=/dev
/null
709 s update-rc.d motd disable
712 # this isn't a complete solution. It still shows me when updates are available,
713 # but it's no big deal.
714 s t
/etc
/update-motd.d
/10-help-text /etc
/update-motd.d
/00-header
720 # https://debian-handbook.info/browse/stable/sect.regular-upgrades.html
721 # /etc/cron.daily/apt calls unattended-upgrades
722 # /usr/share/doc/unattended-upgrades# cat README.md
723 # /etc/apt/apt.conf.d/50unattended-upgrades
725 pi unattended-upgrades
726 s
dd of
=/etc
/apt
/apt.conf.d
/10periodic
<<'EOF'
727 # this file was mostly just comments.
728 APT::Periodic::Update-Package-Lists "1";
729 APT::Periodic::Download-Upgradeable-Packages "1";
730 APT::Periodic::AutocleanInterval "7";
731 APT::Periodic::Unattended-Upgrade "1";
734 Unattended-Upgrade::Mail "root";
735 Unattended-Upgrade::MailOnlyOnError "true";
736 Unattended-Upgrade::Remove-Unused-Dependencies "true";
737 Unattended-Upgrade::Origins-Pattern {
738 # default is just upgrade main and security, not updates.
740 if isdebian-testing
; then
742 # for testing, only do security updates.
743 "origin=Debian,codename=${distro_codename},label=Debian-Security";
747 # These are stable packages only getting bugfixes anyways.
754 } | s
dd of
=/etc
/apt
/apt.conf.d
/50unattended
-upgrades
760 ######### begin postfix ########
761 # based on,http://www.postfix.org/qmgr.8.html and my notes in gnus
762 # originally tried moving specific directories under /var/spool/postfix,
763 # but postfix didn't like that
764 if [[ ! -L /var
/spool
/postfix
]]; then
766 n
=/q
/postfix-
`distro-name``debian-archive`
768 echo "$0: warning: $n already exists before we do the link, removing it"
771 s
mv /var
/spool
/postfix
$n
772 s lnf
-T $n /var
/spool
/postfix
774 journalctl
-n 20 |
cat
778 # This also works instead of ~/.forward
779 # s sed -i '/^root/d' /etc/aliases ||:
780 #echo "root: $HOSTNAME@bog.mm.st" | s tee -a /etc/aliases
781 # this can't be a symlink and has permission restrictions
782 # it might work in /etc/aliases, but this seems more proper.
784 if s
grep amazonaws
/etc
/postfix
/sasl_passwd
&>/dev
/null
; then
785 forward
=$HOSTNAME@sallymae.club
787 forward
=$HOSTNAME@bog.mm.st
789 e
$forward > ~
/.forward
790 e
$forward | s
tee /root
/.forward
793 # if I wanted the from address to be renamed and sent to a different address,
794 # echo "sdx@localhost development@localhost" | sudo dd of=/etc/postfix/recipient_canonical
795 # sudo postmap hash:/etc/postfix/recipient_canonical
796 # sudo service postfix reload
799 # i'm assuming mail just won't work on systems without the sasl_passwd.
801 smtp_sasl_auth_enable = yes
802 smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
803 smtp_sasl_security_options = noanonymous
804 smtp_tls_security_level = secure
805 message_size_limit = 20480000
806 smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
808 # ^ I ran into a log file not sending cuz of size. double from 10 to 20 meg limit
810 s postmap
hash:/etc
/postfix
/sasl_passwd
811 # offlineimap uses this too, it is much easier to use one location than to
812 # condition it's config and postfix's config
814 fedora
) s lnf
-T ca-certificates.crt
/etc
/ssl
/ca-bundle.trust.crt
;;
818 s service postfix reload
821 ############ end postfix #######
825 debian|ubuntu
) s gpasswd
-a ian adm
;; #needed for reading logs
831 # https://www.torproject.org/docs/rpms.html.en
832 # https://www.torproject.org/docs/debian.html.en
833 # todo: figure out if the running service needs to be restarted upon updates
836 # todo on fedora: setup non-dev packages
838 s
dd of
=/etc
/yum.repos.d
/torproject.repo
<<'EOF'
840 name=Tor experimental repo
842 baseurl=http://deb.torproject.org/torproject.org/rpm/tor-testing/fc/20/$basearch/
844 gpgkey=http://deb.torproject.org/torproject.org/rpm/RPM-GPG-KEY-torproject.org.asc
847 name=Tor experimental source repo
850 baseurl=http://deb.torproject.org/torproject.org/rpm/tor-testing/fc/20/SRPMS
852 gpgkey=http://deb.torproject.org/torproject.org/rpm/RPM-GPG-KEY-torproject.org.asc
855 # to be secure, take a look at the fingerprint reported from the following install, and see if it matches from the link above:
856 # 3B9E EEB9 7B1E 827B CF0A 0D96 8AF5 653C 5AC0 01F1
858 /a
/bin
/buildscripts
/tor-browser
861 tu
/etc
/apt
/sources.list
"deb http://deb.torproject.org/torproject.org $(debian-codename) main"
862 gpg
--keyserver keys.gnupg.net
--recv 886DDD89
863 gpg
--export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add
-
865 pi deb.torproject.org-keyring
867 /a
/bin
/buildscripts
/tor-browser
871 /a
/bin
/buildscripts
/tor-browser
874 pi tor tor-browser-en
884 fedora todo: disable the firewall or find a way to automate it.
885 there's an unused section in t.org for tramikssion firewall setup
887 fedora manual config for nfs:
889 change to permanent configuration
890 check the box for nfs
891 was hard to figure this out, not sure if this is all needed, but
893 mountd: udp/tcp 20048
894 portmapper, in firewall-config its called rpc-bind: udp/tcp 111
895 troubleshooting, unblock things in rpcinfo -p
896 make sure to reload the firewall to load the persistent configuration
907 pi nfs-utils || pending_reboot
=true
909 # this failed until I rebooted
914 if [[ -e /i
/video
]]; then
915 # nohide = export filesystems mounted deeper than the export point
916 # fsid=0 makes this export the "root" export
917 # not documented in the man page, but this means
918 # 1. it can be mounted with a shorthand of server:/
919 # 2. exports that are subdirectories of this one will automatically be mounted
920 tu
/etc
/exports
'/i/video 192.168.1.0/24(rw,fsid=0,nohide,no_root_squash,async,no_subtree_check,insecure)'
922 showmount
-e localhost
927 f
=/a
/bin
/$HOSTNAME-crontab
935 # persistent virtual machines
943 # distro may not know about win 10 yet.
945 if ! virt-install
--os-variant list
&>/dev
/null
; then # we are using a newer virt-install
946 for v
in 10 8.1 8; do
947 if osinfo-query os | gr
"^\s*win${v/./\\.}\s" &>/dev
/null
; then
954 if ! s virsh list
--all --name |
grep -xF win10
&>/dev
/null
; then
956 # created account with
957 # win10vmian@outlook.com, and easy to remember password
958 # win 10 virtio, makes disk way way way faster
959 # wget https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win.iso
960 # https://wiki.archlinux.org/index.php/QEMU#Change_Existing_Windows_VM_to_use_virtio
961 # for installing virtio after initial install instead of with initial iso:
962 # qemu-img create -f qcow2 fake.qcow2 1G
963 # --disk=/a/images/virtio-win.iso,device=cdrom \
964 # --disk=/a/images/fake.qcow2,bus=virtio
966 # went to device manager, saw 2 pci devices with yellow !,
967 # did search for drivers, pick cdrom location, done.
969 # from http://www.tenforums.com/tutorials/4189-fast-startup-turn-off-windows-10-a.html.
970 # google said there was a control panel option for it, but
971 # that turned out to be a lie.
972 # Put this in a .bat file and run as administrator to turn off
973 # hyberboot which fucks things up.
974 # REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /V HiberbootEnabled /T REG_dWORD /D 0 /F
975 # power settings, turn off display: never
976 # run "control userpasswords2", turn on automatic login.
977 # note: when changing devices, I just undefine, the create the vm again.
979 s virt-install
--noautoconsole --graphics spice
,listen
=0.0.0.0 \
980 --disk=/a
/images
/win10.qcow2
,bus
=virtio
--vcpus 2 -r 4096 -w bridge
=br0 \
981 -n win10
--import --os-variant $variant --cpu host-model-only
983 s virsh destroy win10
985 # this one hasn\'t had the virtio fix done yet.
986 s virt-install
--noautoconsole --graphics spice
,listen
=0.0.0.0 \
987 --disk=/a
/images
/win7.qcow2
--vcpus 2 -r 4096 -w bridge
=br0 \
988 -n win7
--import --os-variant win7
--cpu host-model-only
990 # had a problem with --cpu host, so trying out
991 # --cpu host-model-only
997 # note samba re-reads it's config every 1 minute
999 arch
) s
cp /etc
/samba
/smb.conf.default
/etc
/samba
/smb.conf
;;
1002 # add 2 lines after workgroup option
1003 s
sed -ri '/^\s*encrypt passwords\s*=/d' /etc
/samba
/smb.conf
1004 s
sed -ri '/^\s*map to guest\s*=/d' /etc
/samba
/smb.conf
1005 s
sed -i 's/\(\s*workgroup\s*=\).*/\1 WORKGROUP\n\tencrypt passwords = yes\n\tmap to guest = bad password/' /etc
/samba
/smb.conf
1006 # remove default homes section. not sharing that.
1007 s
sed -ri '/^\s*\[homes\]/,/\s*\[/d' /etc
/samba
/smb.conf
1009 if ! grep -xF '[public]' /etc
/samba
/smb.conf
&>/dev
/null
; then
1010 s
tee -a /etc
/samba
/smb.conf
<<'EOF'
1020 # systemd claims it generates units from /etc/init.d, but it clearly doesn't
1021 # in debian. I have no idea how they are related. fuck debian right now. It's
1022 # not documented. samba has a systemd init file linked to /dev/null.
1023 # There's this https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769714 which
1024 # claims samba's sub-services will be started automatically by systemd... it
1025 # didn't on install, wonder if it will on boot. It clued me in how to start
1026 # it manually though. Nothing in /usr/share/doc/samba, debian admin guide
1027 # says nothing about any of this. (this is in debian testing as of 4/2016).
1029 s
/etc
/init.d
/samba start
1036 tu
/etc
/hosts
<<< "127.0.1.1 $(hostname).lan $(hostname)"
1040 rootdev
=$
(mount |
sed -rn 's#^(\S+) on / .*#\1#p')
1042 tu
/etc
/fstab
<<< "$rootdev /mnt/root btrfs noatime,subvolid=0 0 0"
1043 s mount
/mnt
/root ||
[[ $?
== 32 ]]
1044 idev
=$
(mount |
sed -rn 's#^(\S+) on /i .*#\1#p')
1045 if [[ $idev != $rootdev ]]; then
1047 tu
/etc
/fstab
<<< "$idev /mnt/iroot btrfs noatime,subvolid=0 0 0"
1048 s mount
/mnt
/iroot ||
[[ $?
== 32 ]]
1051 # Do this again because it occasionally has changes and
1052 # it can be run outside initial isntall.
1053 s
/a
/bin
/fai
/fai
/config
/distro-install-common
/end
1055 if $pending_reboot; then
1056 echo "$0: pending reboot and then finished. doing it now."
1059 echo "$0: $(date): ending now)"