VirtualBox

Ticket #14733: no-lfs.patch

File no-lfs.patch, 5.5 KB (added by Michael Thayer, 9 years ago)

Remove special Linux from Scratch handling in init scripts, which are now an endangered species in any case

  • src/VBox/Additions/linux/installer/vboxadd-service.sh

     
    4343elif [ -f /etc/slackware-version ]; then
    4444    system=slackware
    4545    PIDFILE="/var/run/vboxadd-service"
    46 elif [ -f /etc/lfs-release ]; then
    47     system=lfs
    48     PIDFILE="/var/run/vboxadd-service.pid"
    4946else
    5047    system=other
    5148    if [ -d /var/run -a -w /var/run ]; then
     
    168165
    169166fi
    170167
    171 if [ "$system" = "lfs" ]; then
    172     . /etc/rc.d/init.d/functions
    173     daemon() {
    174         loadproc $1 $2 $3
    175     }
    176 
    177     fail_msg() {
    178         echo_failure
    179     }
    180 
    181     succ_msg() {
    182         echo_ok
    183     }
    184 
    185     begin() {
    186         echo $1
    187     }
    188 
    189     status() {
    190         statusproc $1
    191     }
    192 fi
    193 
    194168binary=/usr/sbin/VBoxService
    195169
    196170testbinary() {
  • src/VBox/Additions/linux/installer/vboxadd-x11.sh

     
    7676    system=suse
    7777elif [ -f /etc/gentoo-release ]; then
    7878    system=gentoo
    79 elif [ -f /etc/lfs-release -a -d /etc/rc.d/init.d ]; then
    80     system=lfs
    8179else
    8280    system=other
    8381fi
     
    132130    fi
    133131fi
    134132
    135 if [ "$system" = "lfs" ]; then
    136     . /etc/rc.d/init.d/functions
    137     fail_msg() {
    138         echo_failure
    139     }
    140     succ_msg() {
    141         echo_ok
    142     }
    143     begin() {
    144         echo $1
    145     }
    146 fi
    147 
    148133if [ "$system" = "debian" -o "$system" = "other" ]; then
    149134    fail_msg() {
    150135        echo " ...fail!"
  • src/VBox/Additions/linux/installer/vboxadd.sh

     
    6363    system=suse
    6464elif [ -f /etc/gentoo-release ]; then
    6565    system=gentoo
    66 elif [ -f /etc/lfs-release -a -d /etc/rc.d/init.d ]; then
    67     system=lfs
    6866else
    6967    system=other
    7068fi
     
    119117    fi
    120118fi
    121119
    122 if [ "$system" = "lfs" ]; then
    123     . /etc/rc.d/init.d/functions
    124     fail_msg() {
    125         echo_failure
    126     }
    127     succ_msg() {
    128         echo_ok
    129     }
    130     begin() {
    131         echo $1
    132     }
    133 fi
    134 
    135120if [ "$system" = "other" ]; then
    136121    fail_msg() {
    137122        echo " ...fail!"
  • src/VBox/Installer/linux/vboxautostart-service.sh

     
    5353    system=gentoo
    5454elif [ -f /etc/slackware-version ]; then
    5555    system=slackware
    56 elif [ -f /etc/lfs-release ]; then
    57     system=lfs
    5856else
    5957    system=other
    6058fi
     
    196194    }
    197195fi
    198196
    199 if [ "$system" = "lfs" ]; then
    200     . /etc/rc.d/init.d/functions
    201     if [ -n "$NOLSB" ]; then
    202         fail_msg() {
    203             echo_failure
    204         }
    205         succ_msg() {
    206             echo_ok
    207         }
    208         begin_msg() {
    209             echo $1
    210         }
    211     fi
    212     start_daemon() {
    213         usr="$1"
    214         shift
    215         su - $usr -c "$*"
    216     }
    217     status() {
    218         statusproc $1
    219     }
    220 fi
    221 
    222197if [ "$system" = "other" ]; then
    223198    if [ -n "$NOLSB" ]; then
    224199        fail_msg() {
  • src/VBox/Installer/linux/vboxballoonctrl-service.sh

     
    5858elif [ -f /etc/slackware-version ]; then
    5959    system=slackware
    6060    PIDFILE="/var/run/vboxballoonctrl-service"
    61 elif [ -f /etc/lfs-release ]; then
    62     system=lfs
    63     PIDFILE="/var/run/vboxballoonctrl-service.pid"
    6461else
    6562    system=other
    6663    if [ -d /var/run -a -w /var/run ]; then
     
    205202    }
    206203fi
    207204
    208 if [ "$system" = "lfs" ]; then
    209     . /etc/rc.d/init.d/functions
    210     if [ -n "$NOLSB" ]; then
    211         fail_msg() {
    212             echo_failure
    213         }
    214         succ_msg() {
    215             echo_ok
    216         }
    217         begin_msg() {
    218             echo $1
    219         }
    220     fi
    221     start_daemon() {
    222         usr="$1"
    223         shift
    224         su - $usr -c "$*"
    225     }
    226     status() {
    227         statusproc $1
    228     }
    229 fi
    230 
    231205if [ "$system" = "other" ]; then
    232206    if [ -n "$NOLSB" ]; then
    233207        fail_msg() {
  • src/VBox/Installer/linux/vboxweb-service.sh

     
    6060elif [ -f /etc/slackware-version ]; then
    6161    system=slackware
    6262    PIDFILE="/var/run/vboxweb-service"
    63 elif [ -f /etc/lfs-release ]; then
    64     system=lfs
    65     PIDFILE="/var/run/vboxweb-service.pid"
    6663else
    6764    system=other
    6865    if [ -d /var/run -a -w /var/run ]; then
     
    207204    }
    208205fi
    209206
    210 if [ "$system" = "lfs" ]; then
    211     . /etc/rc.d/init.d/functions
    212     if [ -n "$NOLSB" ]; then
    213         fail_msg() {
    214             echo_failure
    215         }
    216         succ_msg() {
    217             echo_ok
    218         }
    219         begin_msg() {
    220             echo $1
    221         }
    222     fi
    223     start_daemon() {
    224         usr="$1"
    225         shift
    226         su - $usr -c "$*"
    227     }
    228     status() {
    229         statusproc $1
    230     }
    231 fi
    232 
    233207if [ "$system" = "other" ]; then
    234208    if [ -n "$NOLSB" ]; then
    235209        fail_msg() {

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy